Class ConstructorInvocationTag

  • All Implemented Interfaces:
    org.apache.commons.jelly.Tag
    Direct Known Subclasses:
    ConstructorTag

    public class ConstructorInvocationTag
    extends InvocationTag

    A specialized InvocationTag implementation that deals with ConstructorInvocation objects.

    The following attributes are supported by this tag handler class:

    Attribute Description Optional
    targetClass Defines the target class (i.e. the class, to which the method belongs). This information is required for constructor invocations, however there are several ways of setting it. no
    targetClassName Like targetClass, but defines the target class by name. yes
    targetClassLoader If the target class is defined by name, this attribute can be used for determining the class loader to be used for resolving the class name. yes
    result If this invocation belongs to a ChainedInvocation, with this attribute the name of the source variable (i.e. the variable, in which the result of this invocation is stored) can be defined. yes

    In the body of this tag an arbitrary number of ParameterTag tags can be placed for defining the parameters of this invocation.

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

      • ConstructorInvocationTag

        public ConstructorInvocationTag()
    • Method Detail

      • createInvocation

        protected Invokable createInvocation()
                                      throws org.apache.commons.jelly.JellyTagException
        Creates the invocation object. This implementation creates a ConstructorInvocation object.
        Specified by:
        createInvocation in class InvocationTag
        Returns:
        the new invocation object
        Throws:
        org.apache.commons.jelly.JellyTagException - if the tag is incorrectly used