org.indi.reactor
Interface EventHandlerFactory


public interface EventHandlerFactory

Abstract Factory to create EventHandlers

Author:
Dirk Hünniger

Method Summary
 EventHandler produce(Reactor r, java.nio.channels.SelectableChannel ch)
          Create a new EventHandler.
 

Method Detail

produce

EventHandler produce(Reactor r,
                     java.nio.channels.SelectableChannel ch)
                     throws java.nio.channels.ClosedChannelException,
                            java.io.IOException
Create a new EventHandler. Register it with the give reactor and associate it with the given Channel.

Parameters:
r - The reactor to register the EventHanlder with
ch - The channel to associate the EventHandler with
Returns:
The newly created and configured EventHandler
Throws:
java.nio.channels.ClosedChannelException
java.io.IOException


Copyright © 2008. All Rights Reserved.