Added NioDatagramChannelFactory support to OSGi integration

This commit is contained in:
Trustin Lee 2009-06-18 08:57:01 +00:00
parent 418557248a
commit bcc697110f

View File

@ -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 {