DesignAndDeploy / dnd

Design and Deploy is a framework for developing applications for intelligent environments
Apache License 2.0
3 stars 0 forks source link

Add config option to select Java I/O API #9

Open Patagonicus opened 11 years ago

Patagonicus commented 11 years ago

Netty can use Java's old I/O implementation (OIO), the NIO introduced in Java 4 and NIO2 (called AIO in Netty) introduced in Java 7. The best way to do so is probably to add a config option that provides the name of a factory which in turn creates the EventLoopGroups and ChannelFactories needed by Netty.

schnabeltrei commented 11 years ago

There is an option boolean allowNIO, if that suffices.

Patagonicus commented 11 years ago

I want it to be more flexible. My idea is to have a class that'll generate the necessary objects and gets configuration options from the config file (maybe an array of Strings or a String->String map). But then I also need to figure out how to get Eclipse to use that. Maybe another config option or something.