Class ConstructorInvocationTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- net.sf.jguiraffe.gui.builder.di.tags.InvocationTag
-
- net.sf.jguiraffe.gui.builder.di.tags.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
objects.ConstructorInvocation
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
tags can be placed for defining the parameters of this invocation.ParameterTag
- Version:
- $Id: ConstructorInvocationTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Constructor Summary
Constructors Constructor Description ConstructorInvocationTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Invokable
createInvocation()
Creates the invocation object.-
Methods inherited from class net.sf.jguiraffe.gui.builder.di.tags.InvocationTag
addParameter, doTag, getParameterDependencies, getParameterTypes, getResult, getSource, getTargetClassData, getTargetClassDescription, process, processInvokable, setResult, setTargetClass, setTargetClassLoader, setTargetClassName
-
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
-
-
-
-
Method Detail
-
createInvocation
protected Invokable createInvocation() throws org.apache.commons.jelly.JellyTagException
Creates the invocation object. This implementation creates a
object.ConstructorInvocation
- Specified by:
createInvocation
in classInvocationTag
- Returns:
- the new invocation object
- Throws:
org.apache.commons.jelly.JellyTagException
- if the tag is incorrectly used
-
-