com.caucho.config.type
Class BeanType

java.lang.Object
  extended by com.caucho.config.type.ConfigType
      extended by com.caucho.config.type.BeanType
Direct Known Subclasses:
AbstractBeanType, EnvironmentBeanType, FlowBeanType

public class BeanType
extends ConfigType

Represents an introspected bean type for configuration.


Constructor Summary
BeanType(java.lang.Class beanClass)
           
 
Method Summary
 void beforeConfigure(ConfigContext env, java.lang.Object bean, org.w3c.dom.Node node)
          Called before the children are configured.
 java.lang.Object create(java.lang.Object parent)
          Creates a new instance
 Attribute getAttribute(QName name)
          Returns the attribute based on the given name.
 Attribute getContentProgramAttribute()
          Returns the content program attribute (program excluding if, choose).
 Attribute getProgramAttribute()
          Returns the program attribute.
 java.lang.Class getType()
          Returns the given type.
 void init(java.lang.Object bean)
          Initialize the type
 void inject(java.lang.Object bean)
          Initialize the type
 void introspect()
          Introspect the bean for configuration
 void introspectMethods(java.lang.reflect.Method[] methods)
          Introspect the beans methods for setters
 java.lang.Object replaceObject(java.lang.Object bean)
          Replace the type with the generated object
 java.lang.String toString()
           
 java.lang.Object valueOf(java.lang.Object value)
          Converts the string to the given value.
 java.lang.Object valueOf(java.lang.String text)
          Converts the string to the given value.
 
Methods inherited from class com.caucho.config.type.ConfigType
afterConfigure, beforeConfigureBean, getTypeName, isBean, isEL, isNode, isNoTrim, isProgram, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanType

public BeanType(java.lang.Class beanClass)
Method Detail

getType

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

Specified by:
getType in class ConfigType

create

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

Overrides:
create in class ConfigType

beforeConfigure

public void beforeConfigure(ConfigContext env,
                            java.lang.Object bean,
                            org.w3c.dom.Node node)
Called before the children are configured.

Overrides:
beforeConfigure in class ConfigType

getAttribute

public Attribute getAttribute(QName name)
Returns the attribute based on the given name.

Overrides:
getAttribute in class ConfigType

getProgramAttribute

public Attribute getProgramAttribute()
Returns the program attribute.

Overrides:
getProgramAttribute in class ConfigType

getContentProgramAttribute

public Attribute getContentProgramAttribute()
Returns the content program attribute (program excluding if, choose).

Overrides:
getContentProgramAttribute in class ConfigType

inject

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

Overrides:
inject in class ConfigType

init

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

Overrides:
init in class ConfigType

replaceObject

public java.lang.Object replaceObject(java.lang.Object bean)
Replace the type with the generated object

Overrides:
replaceObject in class ConfigType

valueOf

public java.lang.Object valueOf(java.lang.String text)
Converts the string to the given value.

Specified by:
valueOf in class ConfigType

valueOf

public java.lang.Object valueOf(java.lang.Object value)
Converts the string to the given value.

Overrides:
valueOf in class ConfigType

introspect

public void introspect()
Introspect the bean for configuration

Overrides:
introspect in class ConfigType

introspectMethods

public void introspectMethods(java.lang.reflect.Method[] methods)
Introspect the beans methods for setters


toString

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