org.apache.velocity.app.event
Class MethodExceptionEventHandler.MethodExceptionExecutor

java.lang.Object
  extended by org.apache.velocity.app.event.MethodExceptionEventHandler.MethodExceptionExecutor
All Implemented Interfaces:
EventHandlerMethodExecutor
Enclosing interface:
MethodExceptionEventHandler

public static class MethodExceptionEventHandler.MethodExceptionExecutor
extends Object
implements EventHandlerMethodExecutor

Defines the execution strategy for methodException

Since:
1.5

Method Summary
 void execute(EventHandler handler)
          Call the method methodException()
 Object getReturnValue()
          Get return value at end of all the iterations
 boolean isDone()
          Only run the first MethodExceptionEventHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

execute

public void execute(EventHandler handler)
Call the method methodException()

Specified by:
execute in interface EventHandlerMethodExecutor
Parameters:
handler - call the appropriate method on this handler
Throws:
Exception - generic exception thrown by methodException event handler method call

getReturnValue

public Object getReturnValue()
Description copied from interface: EventHandlerMethodExecutor
Get return value at end of all the iterations

Specified by:
getReturnValue in interface EventHandlerMethodExecutor
Returns:
null if no return value is required

isDone

public boolean isDone()
Only run the first MethodExceptionEventHandler

Specified by:
isDone in interface EventHandlerMethodExecutor
Returns:
true after this is executed once.


Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.