org.apache.avalon.fortress.util
Class FortressCommandFailureHandler

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.fortress.util.FortressCommandFailureHandler
All Implemented Interfaces:
org.d_haven.event.command.CommandFailureHandler, LogEnabled

public class FortressCommandFailureHandler
extends AbstractLogEnabled
implements org.d_haven.event.command.CommandFailureHandler

The default CommandFailureHandler used by Fortress to log any failures encountered while executing commands.

Since:
4.1
Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 15:16:26 $
Author:
Avalon Development Team

Constructor Summary
FortressCommandFailureHandler()
           
 
Method Summary
 boolean handleCommandFailure(org.d_haven.event.command.Command command, java.lang.Throwable throwable)
          Handle a command failure.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FortressCommandFailureHandler

public FortressCommandFailureHandler()
Method Detail

handleCommandFailure

public boolean handleCommandFailure(org.d_haven.event.command.Command command,
                                    java.lang.Throwable throwable)
Handle a command failure. If a command throws an exception, it has failed. The CommandManager will call this method so that we can handle the problem effectively.

Specified by:
handleCommandFailure in interface org.d_haven.event.command.CommandFailureHandler
Parameters:
command - The original Command object that failed
throwable - The throwable that caused the failure
Returns:
true if the CommandManager should cease to process commands.


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