org.apache.avalon.fortress.impl.handler
Class PrepareHandlerCommand
java.lang.Object
org.apache.avalon.fortress.impl.handler.PrepareHandlerCommand
- All Implemented Interfaces:
- org.d_haven.event.command.Command
public final class PrepareHandlerCommand
- extends java.lang.Object
- implements org.d_haven.event.command.Command
This is the command class to initialize a ComponentHandler
- Version:
- CVS $Revision: 1.12 $ $Date: 2004/02/28 15:16:25 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_handler
private final ComponentHandler m_handler
m_logger
private final org.apache.avalon.framework.logger.Logger m_logger
PrepareHandlerCommand
public PrepareHandlerCommand(ComponentHandler handler,
org.apache.avalon.framework.logger.Logger logger)
- Creation of a new prepare handler command.
- Parameters:
handler
- the compoent handlerlogger
- the logging channel
getHandler
public ComponentHandler getHandler()
- Returns a reference to the ComponentHandler being prepared.
- Returns:
- The ComponentHandler.
execute
public void execute()
throws java.lang.Exception
- Invoke execution of the handler
- Specified by:
execute
in interface org.d_haven.event.command.Command
- Throws:
java.lang.Exception
- if a handler execution exception occurs