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

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

public class AnnotationInterfaceType<T>
extends ConfigType<T>

Represents an introspected bean type for configuration.


Constructor Summary
AnnotationInterfaceType(java.lang.Class<T> annClass)
           
 
Method Summary
 java.lang.Object create(java.lang.Object parent, QName name)
          Creates a new instance of the type.
 Attribute getAttribute(QName qName)
          Returns the attribute with the given name.
 java.lang.Class<T> getType()
          Returns the given type.
 boolean isQualifier()
          Returns true for a qualifier annotation
 java.lang.Object replaceObject(java.lang.Object bean)
          Returns the annotation
 java.lang.String toString()
           
 java.lang.String toString(java.util.HashMap<java.lang.String,java.lang.Object> valueMap)
           
 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, getComponentType, getConstructor, getContentProgramAttribute, getDefaultAttribute, getProgramAttribute, getType, getTypeName, init, inject, introspect, isArray, isBean, isConstructableFromString, isEL, isEnvBean, isInlineType, isNode, isNoTrim, isProgram, isReplace, setEnvBean, setProperty, valueOf, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationInterfaceType

public AnnotationInterfaceType(java.lang.Class<T> annClass)
Method Detail

getType

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

Specified by:
getType in class ConfigType<T>

isQualifier

public boolean isQualifier()
Description copied from class: ConfigType
Returns true for a qualifier annotation

Overrides:
isQualifier in class ConfigType<T>

create

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

Overrides:
create in class ConfigType<T>

replaceObject

public java.lang.Object replaceObject(java.lang.Object bean)
Returns the annotation

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>

getAttribute

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

Overrides:
getAttribute in class ConfigType<T>

toString

public java.lang.String toString(java.util.HashMap<java.lang.String,java.lang.Object> valueMap)

toString

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