com.caucho.config.type
Class InterfaceType<T>

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

public class InterfaceType<T>
extends ConfigType<T>

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


Constructor Summary
InterfaceType(java.lang.Class<T> type)
          Create the interface type
 
Method Summary
 java.lang.Object create(java.lang.Object parent, QName name)
          Returns an InterfaceConfig object
 java.lang.Class<T> 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.ConfigType
afterConfigure, beforeConfigure, beforeConfigureBean, carefulIntrospect, createType, getAddAttribute, getAddBeanAttribute, getAttribute, getComponentType, getConstructor, getContentProgramAttribute, getDefaultAttribute, getProgramAttribute, getType, getTypeName, inject, introspect, isArray, isBean, isConstructableFromString, isEL, isEnvBean, isInlineType, isNode, isNoTrim, isProgram, isQualifier, isReplace, setEnvBean, setProperty, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterfaceType

public InterfaceType(java.lang.Class<T> type)
Create the interface type

Method Detail

getType

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

Specified by:
getType in class ConfigType<T>

create

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

Overrides:
create in class ConfigType<T>

init

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

Overrides:
init in class ConfigType<T>

replaceObject

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

Overrides:
replaceObject 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>

valueOf

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

Overrides:
valueOf in class ConfigType<T>

toString

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