org.apache.commons.jelly.tags.define
Class BeanTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.DynaBeanTagSupport
|
+--org.apache.commons.jelly.tags.define.BeanTag
- All Implemented Interfaces:
- DynaTag, Tag
- public class BeanTag
- extends DynaBeanTagSupport
This tag is bound onto a Java Bean class. When the tag is invoked a bean will be created
using the tags attributes.
The bean may also have an invoke method called invoke(), run(), execute() or some such method
which will be invoked after the bean has been configured.
- Version:
- $Revision: 1.7 $
- Author:
- James Strachan, Jason van Zyl
Constructor Summary |
BeanTag(java.lang.Class beanClass,
java.util.Map attributes,
java.lang.String variableNameAttribute,
java.lang.reflect.Method method)
|
Method Summary |
void |
beforeSetAttributes()
Callback to allow processing to occur before the attributes are about to be set |
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
java.lang.Object |
getBean()
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an attribute value of this tag before the tag is invoked |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanTag
public BeanTag(java.lang.Class beanClass,
java.util.Map attributes,
java.lang.String variableNameAttribute,
java.lang.reflect.Method method)
beforeSetAttributes
public void beforeSetAttributes()
throws java.lang.Exception
- Description copied from class:
DynaBeanTagSupport
- Callback to allow processing to occur before the attributes are about to be set
- Overrides:
beforeSetAttributes
in class DynaBeanTagSupport
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws java.lang.Exception
- Description copied from class:
DynaBeanTagSupport
- Sets an attribute value of this tag before the tag is invoked
- Overrides:
setAttribute
in class DynaBeanTagSupport
doTag
public void doTag(XMLOutput output)
throws java.lang.Exception
- Description copied from interface:
Tag
- Evaluates this tag after all the tags properties have been initialized.
getBean
public java.lang.Object getBean()
- Returns:
- the bean that has just been created
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.