public class InvokeStaticTag extends TagSupport implements ArgTagParent
Like the InvokeTag, this tag can take a set of
arguments using the ArgTag.
The following attributes are required:
body, context, parent| Constructor and Description |
|---|
InvokeStaticTag() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(Class type,
Object value)
Adds an argument to supply to the method
|
protected JellyTagException |
createLoadClassFailedException(Exception e)
Factory method to create a new JellyTagException instance from a given
failure exception
|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized.
|
protected Class |
loadClass()
Loads the class using either the class loader which loaded me or the
current threads context class loader
|
void |
setClassName(String className)
Sets the fully qualified class name containing the static method
|
void |
setExceptionVar(String var)
Sets the name of a variable that exports the exception thrown by
the method's invocation (if any)
|
void |
setMethod(String methodName)
Sets the name of the method to invoke
|
void |
setVar(String var)
Sets the name of the variable exported by this tag
|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBodypublic void setVar(String var)
var - The variable namepublic void setExceptionVar(String var)
public void setMethod(String methodName)
method - The method namepublic void setClassName(String className)
className - The name of the classpublic void addArgument(Class type, Object value)
addArgument in interface ArgTagParenttype - The Class type of the argumentvalue - The value of the argumentpublic void doTag(XMLOutput output) throws JellyTagException
TagdoTag in interface TagJellyTagExceptionprotected Class loadClass() throws ClassNotFoundException
ClassNotFoundExceptionprotected JellyTagException createLoadClassFailedException(Exception e)
e - is the exception which occurred attempting to load the classCopyright © 2012 Apache Software Foundation. All Rights Reserved.