org.apache.excalibur.event.command
Class NullCommandFailureHandler
java.lang.Object
org.apache.excalibur.event.command.NullCommandFailureHandler
- All Implemented Interfaces:
- CommandFailureHandler
public class NullCommandFailureHandler
- extends Object
- implements CommandFailureHandler
NullCommandFailureHandler is used to do nothing if a command fails.
- Version:
- CVS $ Revision: 1.1 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHARED_INSTANCE
public static final NullCommandFailureHandler SHARED_INSTANCE
NullCommandFailureHandler
public NullCommandFailureHandler()
handleCommandFailure
public boolean handleCommandFailure(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.
This implementation does nothing and always returns
false
.
- Specified by:
handleCommandFailure
in interface 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 © 2012 The Apache Software Foundation. All Rights Reserved.