com.caucho.config.xml
Class XmlBeanType<T>

java.lang.Object
  extended by com.caucho.config.type.ConfigType<T>
      extended by com.caucho.config.xml.XmlBeanType<T>

public class XmlBeanType<T>
extends ConfigType<T>

Represents a CanDI-style introspected bean type for configuration.


Constructor Summary
XmlBeanType(java.lang.Class<T> beanClass)
           
 
Method Summary
 void beforeConfigure(XmlConfigContext builder, java.lang.Object bean, org.w3c.dom.Node node)
          Called before the children are configured.
 java.lang.Object create(java.lang.Object parent, QName name)
          Creates a new instance
 Attribute getAttribute(QName qName)
          Returns the attribute with the given name.
protected  Attribute getAttributeImpl(QName qName)
           
 Attribute getProgramAttribute()
          Returns the program attribute.
 java.lang.Class<T> getType()
          Returns the given type.
 void init(java.lang.Object bean)
          Initialize the type
 java.lang.String toString()
           
 java.lang.Object valueOf(java.lang.String text)
          Converts the string to a value of the type.
 
Methods inherited from class com.caucho.config.type.ConfigType
afterConfigure, beforeConfigureBean, carefulIntrospect, createType, getAddAttribute, getAddBeanAttribute, getComponentType, getConstructor, getContentProgramAttribute, getDefaultAttribute, getType, getTypeName, inject, introspect, isArray, isBean, isConstructableFromString, isEL, isEnvBean, isInlineType, isNode, isNoTrim, isProgram, isQualifier, isReplace, replaceObject, setEnvBean, setProperty, valueOf, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlBeanType

public XmlBeanType(java.lang.Class<T> beanClass)
Method Detail

getType

public java.lang.Class<T> getType()
Returns the given type.

Specified by:
getType in class ConfigType<T>

create

public java.lang.Object create(java.lang.Object parent,
                               QName name)
Creates a new instance

Overrides:
create in class ConfigType<T>

getAttribute

public Attribute getAttribute(QName qName)
Returns the attribute with the given name.

Overrides:
getAttribute in class ConfigType<T>

getAttributeImpl

protected Attribute getAttributeImpl(QName qName)

getProgramAttribute

public Attribute getProgramAttribute()
Description copied from class: ConfigType
Returns the program attribute.

Overrides:
getProgramAttribute in class ConfigType<T>

beforeConfigure

public void beforeConfigure(XmlConfigContext builder,
                            java.lang.Object bean,
                            org.w3c.dom.Node node)
Called before the children are configured. Also called for attribute configuration, e.g. for macros and web-app-default.

Overrides:
beforeConfigure in class ConfigType<T>

valueOf

public java.lang.Object valueOf(java.lang.String text)
Converts the string to a value of the type.

Specified by:
valueOf in class ConfigType<T>

init

public void init(java.lang.Object bean)
Initialize the type

Overrides:
init in class ConfigType<T>

toString

public java.lang.String toString()
Overrides:
toString in class ConfigType<T>