org.apache.avalon.fortress.util
Class FortressCommandFailureHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.fortress.util.FortressCommandFailureHandler
- All Implemented Interfaces:
- org.apache.avalon.framework.logger.LogEnabled, org.d_haven.event.command.CommandFailureHandler
public class FortressCommandFailureHandler
- extends org.apache.avalon.framework.logger.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
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 |
FortressCommandFailureHandler
public FortressCommandFailureHandler()
handleCommandFailure
public boolean handleCommandFailure(org.d_haven.event.command.Command command,
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 failedthrowable
- The throwable that caused the failure
- Returns:
true
if the CommandManager should cease to process commands.
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.