Class VelocityActionEvent

  • All Implemented Interfaces:
    Action, Assembler
    Direct Known Subclasses:
    VelocityAction

    public abstract class VelocityActionEvent
    extends ActionEvent
    If you are using VelocitySite stuff, then your Action's should extend this class instead of extending the ActionEvent class. The difference between this class and the ActionEvent class is that this class will first attempt to execute one of your doMethod's with a constructor like this:

    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.

    Version:
    $Id$
    Author:
    Jon S. Stevens, Jason van Zyl, Henning P. Schmiedehausen, Peter Courcoux
    • Field Detail

      • initialized

        protected boolean initialized
        Indicates whether or not this module has been initialized.
    • Method Detail

      • initialize

        protected abstract void initialize()
                                    throws Exception
        Provides a means of initializing the module.
        Throws:
        Exception - a generic exception.
      • doPerform

        public void doPerform​(PipelineData pipelineData)
                       throws Exception
        This overrides the default Action.doPerform() to execute the doEvent() method. If that fails, then it will execute the doPerform() method instead.
        Specified by:
        doPerform in interface Action
        Overrides:
        doPerform in class ActionEvent
        Parameters:
        pipelineData - A Turbine RunData object.
        Throws:
        Exception - a generic exception.