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

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

Constructor Summary
PrepareHandlerCommand(ComponentHandler handler, 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
 

Constructor Detail

PrepareHandlerCommand

public PrepareHandlerCommand(ComponentHandler handler,
                             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


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.