| |
|
| java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.core.InvokeStaticTag
InvokeStaticTag | public class InvokeStaticTag extends TagSupport implements ArgTagParent(Code) | | A Tag which can invoke a static method on a class, without an
instance of the class being needed.
Like the
InvokeTag , this tag can take a set of
arguments using the
ArgTag .
The following attributes are required:
- var - The variable to assign the return of the method call to
- method - The name of the static method to invoke
- className - The name of the class containing the static method
author: InvokeStaticTag() |
InvokeStaticTag | public InvokeStaticTag()(Code) | | |
addArgument | public void addArgument(Class type, Object value)(Code) | | Adds an argument to supply to the method
Parameters: type - The Class type of the argument Parameters: value - The value of the argument |
createLoadClassFailedException | protected JellyTagException createLoadClassFailedException(Exception e)(Code) | | Factory method to create a new JellyTagException instance from a given
failure exception
Parameters: e - is the exception which occurred attempting to load the class JellyTagException |
loadClass | protected Class loadClass() throws ClassNotFoundException(Code) | | Loads the class using either the class loader which loaded me or the
current threads context class loader
|
setClassName | public void setClassName(String className)(Code) | | Sets the fully qualified class name containing the static method
Parameters: className - The name of the class |
setExceptionVar | public void setExceptionVar(String var)(Code) | | Sets the name of a variable that exports the exception thrown by
the method's invocation (if any)
|
setMethod | public void setMethod(String methodName)(Code) | | Sets the name of the method to invoke
Parameters: method - The method name |
setVar | public void setVar(String var)(Code) | | Sets the name of the variable exported by this tag
Parameters: var - The variable name |
|
|
|