Fix naming

This commit is contained in:
Trustin Lee 2013-06-25 18:37:29 +09:00
parent bc483724f4
commit c7c9e743ce
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class TelnetServer {
ServerBootstrap b = new ServerBootstrap();
b.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new TelnetServerPipelineFactory());
.childHandler(new TelnetServerInitializer());
b.bind(port).sync().channel().closeFuture().sync();
} finally {

View File

@ -26,7 +26,7 @@ import io.netty.handler.codec.string.StringEncoder;
/**
* Creates a newly configured {@link ChannelPipeline} for a new channel.
*/
public class TelnetServerPipelineFactory extends ChannelInitializer<SocketChannel> {
public class TelnetServerInitializer extends ChannelInitializer<SocketChannel> {
private static final StringDecoder DECODER = new StringDecoder();
private static final StringEncoder ENCODER = new StringEncoder();
private static final TelnetServerHandler SERVERHANDLER = new TelnetServerHandler();