Package org.apache.velocity.app.event
Class MethodExceptionEventHandler.MethodExceptionExecutor
java.lang.Object
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
Modifier and TypeMethodDescriptionvoidexecute(EventHandler handler) Call the method methodException()Get return value at end of all the iterationsbooleanisDone()Only run the first MethodExceptionEventHandler
-
Method Details
-
execute
Call the method methodException()- Specified by:
executein interfaceEventHandlerMethodExecutor- Parameters:
handler- call the appropriate method on this handler- Throws:
Exception- generic exception thrown by methodException event handler method call
-
getReturnValue
Description copied from interface:EventHandlerMethodExecutorGet return value at end of all the iterations- Specified by:
getReturnValuein interfaceEventHandlerMethodExecutor- Returns:
- null if no return value is required
-
isDone
public boolean isDone()Only run the first MethodExceptionEventHandler- Specified by:
isDonein interfaceEventHandlerMethodExecutor- Returns:
- true after this is executed once.
-