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 java.lang.Object implements EventHandlerMethodExecutor
Defines the execution strategy for methodException- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(EventHandler handler)Call the method methodException()java.lang.ObjectgetReturnValue()Get return value at end of all the iterationsbooleanisDone()Only run the first MethodExceptionEventHandler
-
-
-
Method Detail
-
execute
public void execute(EventHandler handler) throws java.lang.Exception
Call the method methodException()- Specified by:
executein interfaceEventHandlerMethodExecutor- Parameters:
handler- call the appropriate method on this handler- Throws:
java.lang.Exception- generic exception thrown by methodException event handler method call
-
getReturnValue
public java.lang.Object 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.
-
-