Class ActionTaskTag

  • All Implemented Interfaces:
    ConditionalTag, PropertySupport, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.Tag

    public class ActionTaskTag
    extends UseBeanBaseTag

    A simple tag for specifying task objects for actions.

    This tag must be nested inside an ActionTag tag. It creates a task object (which must implement the Runnable interface) and assigns it to the nesting action tag.

    By inheriting from UseBeanBaseTag this tag supports the creation of new objects (by specifying the class attribute) and the usage of existing beans stored in the Jelly context or the current bean context as well.

    Version:
    $Id: ActionTaskTag.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Constructor Detail

      • ActionTaskTag

        public ActionTaskTag()
    • Method Detail

      • passResults

        protected boolean passResults​(Object bean)
                               throws org.apache.commons.jelly.JellyTagException
        Passes the resulting bean to the nesting action tag. This implementation checks whether this tag is nested inside an action tag. If this is not the case, an exception will be thrown.
        Overrides:
        passResults in class UseBeanBaseTag
        Parameters:
        bean - the resulting bean
        Returns:
        a flag whether the bean could be passed to a target
        Throws:
        org.apache.commons.jelly.JellyTagException - if an error occurs