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 = "nettyencode")
@Order(1)
public class CodecEncoderFactory  extends DefaultChannelHandlerFactory {
    @Override
    public ChannelHandler newChannelHandler() {
        return new Encode();
    }
}
