com.caucho.config.type
Class AbstractBeanType

java.lang.Object
  extended by com.caucho.config.type.ConfigType<T>
      extended by com.caucho.config.type.InlineBeanType
          extended by com.caucho.config.type.AbstractBeanType
Direct Known Subclasses:
ConfigProgramType

public class AbstractBeanType
extends InlineBeanType

Represents an interface. The interface will try to lookup the value in webbeans.


Field Summary
 
Fields inherited from class com.caucho.config.type.InlineBeanType
TEXT, VALUE
 
Constructor Summary
AbstractBeanType(java.lang.Class type)
          Create the interface type
 
Method Summary
 java.lang.Object create(java.lang.Object parent, QName name)
          Returns an InterfaceConfig object
 java.lang.Class getType()
          Returns the Java type.
 void init(java.lang.Object bean)
          Replace the type with the generated object
 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 value to a value of the type.
 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.InlineBeanType
beforeConfigure, getAddAttribute, getAddBeanAttribute, getAttribute, getAttributeImpl, getConstructor, getContentProgramAttribute, getProgramAttribute, inject, introspect, introspectMethods, isConstructableFromString, isEL, isReplace, setAddAnnotation, setAddCustomBean
 
Methods inherited from class com.caucho.config.type.ConfigType
afterConfigure, beforeConfigureBean, carefulIntrospect, createType, getComponentType, getDefaultAttribute, getType, getTypeName, isArray, isBean, isEnvBean, isInlineType, isNode, isNoTrim, isProgram, isQualifier, setEnvBean, setProperty, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractBeanType

public AbstractBeanType(java.lang.Class type)
Create the interface type

Method Detail

getType

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

Overrides:
getType in class InlineBeanType

create

public java.lang.Object create(java.lang.Object parent,
                               QName name)
Returns an InterfaceConfig object

Overrides:
create in class InlineBeanType

init

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

Overrides:
init in class InlineBeanType

replaceObject

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

Overrides:
replaceObject in class InlineBeanType

valueOf

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

Overrides:
valueOf in class InlineBeanType

valueOf

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

Overrides:
valueOf in class InlineBeanType

toString

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