org.apache.commons.jelly.tags.bean
Class BeanTagLibrary

java.lang.Object
  extended by org.apache.commons.jelly.TagLibrary
      extended by org.apache.commons.jelly.tags.bean.BeanTagLibrary

public class BeanTagLibrary
extends org.apache.commons.jelly.TagLibrary

Describes the Taglib. This class could be generated by XDoclet

Version:
$Revision: 155420 $
Author:
Theo Niemeijer

Field Summary
private  java.util.Map beanTypes
          Synchronized map of tag names to bean classes
private  java.util.Map invokeMethods
          Synchronized map of tag names to invoke methods
 
Constructor Summary
BeanTagLibrary()
           
 
Method Summary
protected  org.apache.commons.jelly.Tag createBeanTag(java.lang.String name, org.xml.sax.Attributes attributes)
           
protected  org.apache.commons.jelly.impl.TagFactory createTagFactory(java.lang.String name, org.xml.sax.Attributes attributes)
          Factory method to create a TagFactory for a given tag attribute and attributes
 org.apache.commons.jelly.impl.TagScript createTagScript(java.lang.String name, org.xml.sax.Attributes attributes)
           
protected  java.lang.Class getBeanType(java.lang.String name, org.xml.sax.Attributes attributes)
           
 void registerBean(java.lang.String name, java.lang.Class type)
          Allows tags to register new bean types
 void registerBean(java.lang.String name, java.lang.Class type, java.lang.reflect.Method method)
          Allows tags to register new bean types with an associated method
 void registerBean(java.lang.String name, java.lang.Class type, java.lang.String methodName)
          Allows tags to register new bean types with an associated method
 
Methods inherited from class org.apache.commons.jelly.TagLibrary
createExpression, createTag, getExpressionFactory, getTagClasses, registerTag, registerTagFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanTypes

private java.util.Map beanTypes
Synchronized map of tag names to bean classes


invokeMethods

private java.util.Map invokeMethods
Synchronized map of tag names to invoke methods

Constructor Detail

BeanTagLibrary

public BeanTagLibrary()
Method Detail

registerBean

public void registerBean(java.lang.String name,
                         java.lang.Class type)
Allows tags to register new bean types


registerBean

public void registerBean(java.lang.String name,
                         java.lang.Class type,
                         java.lang.reflect.Method method)
Allows tags to register new bean types with an associated method


registerBean

public void registerBean(java.lang.String name,
                         java.lang.Class type,
                         java.lang.String methodName)
Allows tags to register new bean types with an associated method


createTagScript

public org.apache.commons.jelly.impl.TagScript createTagScript(java.lang.String name,
                                                               org.xml.sax.Attributes attributes)
                                                        throws org.apache.commons.jelly.JellyException
Overrides:
createTagScript in class org.apache.commons.jelly.TagLibrary
Throws:
org.apache.commons.jelly.JellyException

createTagFactory

protected org.apache.commons.jelly.impl.TagFactory createTagFactory(java.lang.String name,
                                                                    org.xml.sax.Attributes attributes)
                                                             throws org.apache.commons.jelly.JellyException
Factory method to create a TagFactory for a given tag attribute and attributes

Throws:
org.apache.commons.jelly.JellyException

createBeanTag

protected org.apache.commons.jelly.Tag createBeanTag(java.lang.String name,
                                                     org.xml.sax.Attributes attributes)
                                              throws org.apache.commons.jelly.JellyException
Throws:
org.apache.commons.jelly.JellyException

getBeanType

protected java.lang.Class getBeanType(java.lang.String name,
                                      org.xml.sax.Attributes attributes)