Class NewTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.core.BaseClassLoaderTag
org.apache.commons.jelly.tags.core.NewTag
- All Implemented Interfaces:
Tag,ArgTagParent
A tag which creates a new object of the given type
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Field Summary
Fields inherited from class org.apache.commons.jelly.tags.core.BaseClassLoaderTag
classLoader, useContextClassLoaderFields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(Class type, Object value) voidEvaluates this tag after all the tags properties have been initialized.voidsetClassName(String className) Sets the class name of the object to instantiatevoidSets the name of the variable exported by this tagMethods inherited from class org.apache.commons.jelly.tags.core.BaseClassLoaderTag
getClassLoader, getUseContextClassLoader, setClassLoader, setUseContextClassLoaderMethods 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
-
Constructor Details
-
NewTag
public NewTag()
-
-
Method Details
-
setVar
Sets the name of the variable exported by this tag -
setClassName
Sets the class name of the object to instantiate -
addArgument
- Specified by:
addArgumentin interfaceArgTagParent
-
doTag
Description copied from interface:TagEvaluates this tag after all the tags properties have been initialized.- Specified by:
doTagin interfaceTag- Throws:
MissingAttributeExceptionJellyTagException
-