public class InlineBeanType<T> extends ConfigType<T>
Constructor and Description |
---|
InlineBeanType(java.lang.Class<T> beanClass) |
Modifier and Type | Method and Description |
---|---|
void |
beforeConfigure(XmlConfigContext env,
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 |
getAddAttribute(java.lang.Class<?> cl)
Returns any add attributes to add arbitrary content
|
Attribute |
getAddBeanAttribute(QName qName) |
Attribute |
getAttribute(QName name)
Returns the attribute based on the given name.
|
protected Attribute |
getAttributeImpl(QName name) |
java.lang.reflect.Constructor<T> |
getConstructor(int count)
Returns a constructor with a given number of arguments
|
Attribute |
getContentProgramAttribute()
Returns the content program attribute (program excluding if, choose).
|
Attribute |
getProgramAttribute()
Returns the program attribute.
|
java.lang.Class<T> |
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
|
boolean |
isConstructableFromString() |
boolean |
isEL()
Return true for EL evaluation
|
boolean |
isReplace()
Return true if the object is replaced
|
java.lang.Object |
replaceObject(java.lang.Object bean)
Replace the type with the generated object
|
protected void |
setAddAnnotation(Attribute addAnnotation) |
protected void |
setAddCustomBean(Attribute addCustomBean) |
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.
|
afterConfigure, beforeConfigureBean, carefulIntrospect, createType, getComponentType, getDefaultAttribute, getType, getTypeName, isArray, isBean, isEnvBean, isInlineType, isNode, isNoTrim, isProgram, isQualifier, setEnvBean, setProperty, valueOf
public InlineBeanType(java.lang.Class<T> beanClass)
public java.lang.Class<T> getType()
getType
in class ConfigType<T>
public boolean isEL()
ConfigType
isEL
in class ConfigType<T>
protected void setAddCustomBean(Attribute addCustomBean)
protected void setAddAnnotation(Attribute addAnnotation)
public java.lang.Object create(java.lang.Object parent, QName name)
create
in class ConfigType<T>
public java.lang.reflect.Constructor<T> getConstructor(int count)
getConstructor
in class ConfigType<T>
public void beforeConfigure(XmlConfigContext env, java.lang.Object bean, org.w3c.dom.Node node)
beforeConfigure
in class ConfigType<T>
public Attribute getAttribute(QName name)
getAttribute
in class ConfigType<T>
public Attribute getAddBeanAttribute(QName qName)
getAddBeanAttribute
in class ConfigType<T>
public Attribute getAddAttribute(java.lang.Class<?> cl)
getAddAttribute
in class ConfigType<T>
public Attribute getProgramAttribute()
getProgramAttribute
in class ConfigType<T>
public Attribute getContentProgramAttribute()
getContentProgramAttribute
in class ConfigType<T>
public void inject(java.lang.Object bean)
inject
in class ConfigType<T>
public void init(java.lang.Object bean)
init
in class ConfigType<T>
public boolean isReplace()
isReplace
in class ConfigType<T>
public java.lang.Object replaceObject(java.lang.Object bean)
replaceObject
in class ConfigType<T>
public java.lang.Object valueOf(java.lang.String text)
valueOf
in class ConfigType<T>
public boolean isConstructableFromString()
isConstructableFromString
in class ConfigType<T>
public java.lang.Object valueOf(java.lang.Object value)
valueOf
in class ConfigType<T>
public void introspect()
introspect
in class ConfigType<T>
public void introspectMethods(java.lang.reflect.Method[] methods)
public java.lang.String toString()
toString
in class ConfigType<T>