org.apache.excalibur.event.command
Class NullCommandFailureHandler

java.lang.Object
  extended byorg.apache.excalibur.event.command.NullCommandFailureHandler
All Implemented Interfaces:
CommandFailureHandler

public class NullCommandFailureHandler
extends java.lang.Object
implements CommandFailureHandler

NullCommandFailureHandler is used to do nothing if a command fails.

Version:
CVS $ Revision: 1.1 $
Author:
Avalon Development Team

Field Summary
static NullCommandFailureHandler SHARED_INSTANCE
           
 
Constructor Summary
NullCommandFailureHandler()
           
 
Method Summary
 boolean handleCommandFailure(Command command, java.lang.Throwable throwable)
          Handle a command failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHARED_INSTANCE

public static final NullCommandFailureHandler SHARED_INSTANCE
Constructor Detail

NullCommandFailureHandler

public NullCommandFailureHandler()
Method Detail

handleCommandFailure

public boolean handleCommandFailure(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. This implementation does nothing and always returns false.

Specified by:
handleCommandFailure in interface 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.