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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMethodExceptionExecutor
(Context context, Class claz, String method, Exception e) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(EventHandler handler) Call the method methodException()Get return value at end of all the iterationsboolean
isDone()
Only run the first MethodExceptionEventHandler
-
Field Details
-
context
-
claz
-
method
-
e
-
result
-
executed
private boolean executed
-
-
Constructor Details
-
MethodExceptionExecutor
-
-
Method Details
-
execute
Call the method methodException()- Specified by:
execute
in 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:EventHandlerMethodExecutor
Get return value at end of all the iterations- Specified by:
getReturnValue
in interfaceEventHandlerMethodExecutor
- Returns:
- null if no return value is required
-
isDone
public boolean isDone()Only run the first MethodExceptionEventHandler- Specified by:
isDone
in interfaceEventHandlerMethodExecutor
- Returns:
- true after this is executed once.
-