org.apache.avalon.fortress.impl.handler
Class PrepareHandlerCommand

java.lang.Object
  extended by 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

Field Summary
private  ComponentHandler m_handler
           
private  org.apache.avalon.framework.logger.Logger m_logger
           
 
Constructor Summary
PrepareHandlerCommand(ComponentHandler handler, org.apache.avalon.framework.logger.Logger logger)
          Creation of a new prepare handler command.
 
Method Summary
 void execute()
          Invoke execution of the handler
 ComponentHandler getHandler()
          Returns a reference to the ComponentHandler being prepared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_handler

private final ComponentHandler m_handler

m_logger

private final org.apache.avalon.framework.logger.Logger m_logger
Constructor Detail

PrepareHandlerCommand

public PrepareHandlerCommand(ComponentHandler handler,
                             org.apache.avalon.framework.logger.Logger logger)
Creation of a new prepare handler command.

Parameters:
handler - the compoent handler
logger - the logging channel
Method Detail

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