package org.dromara.netty;

import io.netty.channel.ChannelHandler;
import org.apache.camel.component.netty.DefaultChannelHandlerFactory;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component(value = "nettydecode")
@Order(1)
public class CodecDecoderFactory extends DefaultChannelHandlerFactory {
    @Override
    public ChannelHandler newChannelHandler() {
        return new Decode();
    }
}
