ChannelGroup channels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
final InboundPacketHandler<GameServerSession> inboundPacketHandler = new InboundPacketHandler<GameServerSession>(channels, packetHandlers, SessionKey.SESSION_KEY, actionQueue);
LogBlackList logBlackList = gameServerConfiguration.getLogBlackList();
if(gameServerConfiguration.getLogBlackList() != null) { // don't log some inbound and outbound packets
Set<Class<? extends Packet>> inboundPacketsLogBlackList = new HashSet<Class<? extends Packet>>(), outboundPacketsLogBlackList = new HashSet<Class<? extends Packet>>();
for(String packet : logBlackList.getInbound().getPacket()) {
inboundPacketsLogBlackList.add( (Class<? extends Packet>)Class.forName(packet));
}
for(String packet : logBlackList.getOutbound().getPacket()) {
outboundPacketsLogBlackList.add( (Class<? extends Packet>)Class.forName(packet));
}
GameServerChannelInitializer pingChannelInitializer = new GameServerChannelInitializer(packetDeserializers, inboundPacketHandler, packetSerializers, SessionKey.SESSION_KEY, inboundPacketsLogBlackList, outboundPacketsLogBlackList);