Added NioDatagramChannelFactory support to OSGi integration
This commit is contained in:
parent
418557248a
commit
bcc697110f
@ -37,6 +37,7 @@ import org.jboss.netty.channel.socket.ClientSocketChannelFactory;
|
||||
import org.jboss.netty.channel.socket.DatagramChannelFactory;
|
||||
import org.jboss.netty.channel.socket.ServerSocketChannelFactory;
|
||||
import org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory;
|
||||
import org.jboss.netty.channel.socket.nio.NioDatagramChannelFactory;
|
||||
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;
|
||||
import org.jboss.netty.channel.socket.oio.OioClientSocketChannelFactory;
|
||||
import org.jboss.netty.channel.socket.oio.OioDatagramChannelFactory;
|
||||
@ -92,6 +93,7 @@ public class NettyBundleActivator implements BundleActivator {
|
||||
// Miscellaneous transports
|
||||
register(ctx, new OioClientSocketChannelFactory(executor));
|
||||
register(ctx, new OioServerSocketChannelFactory(executor, executor));
|
||||
register(ctx, new NioDatagramChannelFactory(executor));
|
||||
}
|
||||
|
||||
public void stop(BundleContext ctx) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user