public abstract class VelocityActionEvent extends ActionEvent
doEvent(RunData data, Context context)
It gets the context from the TemplateInfo.getTemplateContext() method. If it can't find a method like that, then it will try to execute the method without the Context in it.
Modifier and Type | Field and Description |
---|---|
protected boolean |
initialized
Indicates whether or not this module has been initialized.
|
protected VelocityService |
velocity
Injected velocity service
|
bubbleUpException, BUTTON, BUTTON_LENGTH, DEFAULT_METHOD, LENGTH, log, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
Constructor and Description |
---|
VelocityActionEvent() |
Modifier and Type | Method and Description |
---|---|
void |
doPerform(PipelineData pipelineData)
This overrides the default Action.doPerform() to execute the
doEvent() method.
|
protected abstract void |
initialize()
Provides a means of initializing the module.
|
considerKey, executeEvents, formatString, getMethod
getRunData
protected VelocityService velocity
protected boolean initialized
public VelocityActionEvent()
protected abstract void initialize() throws Exception
Exception
- a generic exception.public void doPerform(PipelineData pipelineData) throws Exception
doPerform
in class ActionEvent
pipelineData
- A Turbine RunData object.Exception
- a generic exception.Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.