Package org.apache.velocity.app.event
Class IncludeEventHandler.IncludeEventExecutor
java.lang.Object
org.apache.velocity.app.event.IncludeEventHandler.IncludeEventExecutor
- All Implemented Interfaces:
EventHandlerMethodExecutor
- Enclosing interface:
- IncludeEventHandler
public static class IncludeEventHandler.IncludeEventExecutor
extends Object
implements EventHandlerMethodExecutor
Defines the execution strategy for includeEvent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIncludeEventExecutor(Context context, String includeResourcePath, String currentResourcePath, String directiveName) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(EventHandler handler) Call the method includeEvent()Get return value at end of all the iterationsbooleanisDone()Called after execute() to see if iterating should stop.
-
Field Details
-
context
-
includeResourcePath
-
currentResourcePath
-
directiveName
-
executed
private boolean executed
-
-
Constructor Details
-
IncludeEventExecutor
-
-
Method Details
-
execute
Call the method includeEvent()- Specified by:
executein interfaceEventHandlerMethodExecutor- Parameters:
handler- call the appropriate method on this handler
-
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()Description copied from interface:EventHandlerMethodExecutorCalled after execute() to see if iterating should stop. Should always return false before method execute() is run.- Specified by:
isDonein interfaceEventHandlerMethodExecutor- Returns:
- true if no more event handlers for this method should be called.
-