org.apache.avalon.cornerstone.services.connection
Class DefaultHandlerFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.cornerstone.services.connection.AbstractHandlerFactory
org.apache.avalon.cornerstone.services.connection.DefaultHandlerFactory
- All Implemented Interfaces:
- Configurable, ConnectionHandlerFactory, Contextualizable, LogEnabled, Serviceable
- public class DefaultHandlerFactory
- extends AbstractHandlerFactory
Default Hnalder factory that creates instances via reflection.
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_handlerClass
protected Class m_handlerClass
DefaultHandlerFactory
public DefaultHandlerFactory(Class handlerClass)
newHandler
protected ConnectionHandler newHandler()
throws Exception
- Overide this method to create actual instance of connection handler.
- Specified by:
newHandler
in class AbstractHandlerFactory
- Returns:
- the new ConnectionHandler
- Throws:
Exception
- if an error occurs
releaseConnectionHandler
public void releaseConnectionHandler(ConnectionHandler connectionHandler)
- Release a previously created ConnectionHandler.
e.g. for spooling.
- Specified by:
releaseConnectionHandler
in interface ConnectionHandlerFactory
- Overrides:
releaseConnectionHandler
in class AbstractHandlerFactory
Copyright © Apache Software Foundation. All Rights Reserved.