org.apache.commons.jelly.tags.bean
Class BeandefTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.bean.BeandefTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class BeandefTag
- extends org.apache.commons.jelly.TagSupport
Binds a Java bean to the given named Jelly tag so that the attributes of
the tag set the bean properties..
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.ClassLoader |
getClassLoader()
|
protected java.lang.reflect.Method |
getInvokeMethod(java.lang.Class theClass)
|
java.lang.String |
getMethodName()
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the ClassLoader to use to load the class.
|
void |
setClassName(java.lang.String className)
Sets the Java class name to use for the tag |
void |
setMethodName(java.lang.String methodName)
Sets the methodName. |
void |
setName(java.lang.String name)
Sets the name of the tag to create |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ARGUMENT_TYPES
protected static final java.lang.Class[] EMPTY_ARGUMENT_TYPES
BeandefTag
public BeandefTag(BeanTagLibrary library)
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
setName
public void setName(java.lang.String name)
- Sets the name of the tag to create
setClassName
public void setClassName(java.lang.String className)
- Sets the Java class name to use for the tag
setClassLoader
public void setClassLoader(java.lang.ClassLoader classLoader)
- Sets the ClassLoader to use to load the class.
If no value is set then the current threads context class
loader is used.
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Returns:
- the ClassLoader to use to load classes
or will use the thread context loader if none is specified.
getMethodName
public java.lang.String getMethodName()
- Returns:
- String
setMethodName
public void setMethodName(java.lang.String methodName)
- Sets the methodName.
- Parameters:
methodName
- The methodName to set
getInvokeMethod
protected java.lang.reflect.Method getInvokeMethod(java.lang.Class theClass)
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.