dev@grizzly.java.net

Split entities (Controller, SelectorHandler...) and their configuration

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Tue, 19 Feb 2008 18:34:55 +0100

Hello,

recently we discussed with Jeanfrancois idea (proposed by Charlie?) of
splitting Grizzly entities like Controller, SelectorHandlers and their
configuration.
So, basically we will remove lots of Controller/SelectorHandler fields
getter and setter methods and move them to separate configuration
object.
As I understand example of Controller configuration will be:

Was:
Controller.setDefaultPipeline(pipeline)

Will be:
Controller.getConfiguration().setDefaultPipeline(pipeline)

So this way we will need to create configuration objects for each
entity we have: Controller, TCP/UDP/SSL SelectorHandler, TCP/UDP/SSL
ConnectorHandler, SelectionKeyHandlers etc...

May be someone has better idea how we can split those things,
implement this better way - welcome :)

Thanks.

WBR,
Alexey.