|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.beans.metadata.plugins.AbstractValueMetaData
org.jboss.beans.metadata.plugins.AbstractTypeMetaData
public abstract class AbstractTypeMetaData
A typed value.
| Field Summary | |
|---|---|
protected String |
beanName
The bean name |
protected KernelConfigurator |
configurator
The configurator |
protected org.jboss.dependency.spi.ControllerContext |
context
The context |
protected String |
propertyName
The property name |
protected String |
type
The type |
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Fields inherited from interface org.jboss.beans.metadata.plugins.TypeProvider |
|---|
ERROR_MSG |
| Constructor Summary | |
|---|---|
AbstractTypeMetaData()
Create a new typed value |
|
AbstractTypeMetaData(String value)
Create a new typed value |
|
| Method Summary | ||
|---|---|---|
protected
|
checkResult(Object result,
Class<T> expected)
Check result for class compatibility. |
|
protected
|
createInstance(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl,
Class<T> expected,
boolean explicit)
Create new instance from type field. |
|
protected org.jboss.reflect.spi.ClassInfo |
getClass(MetaDataVisitor visitor,
String classType)
|
|
protected org.jboss.reflect.spi.ClassInfo |
getClassInfo(ClassLoader cl)
Get the class info for this type |
|
protected org.jboss.reflect.spi.ClassInfo |
getClassInfo(String classType,
ClassLoader cl)
|
|
protected abstract Object |
getDefaultInstance()
Get the default instance. |
|
String |
getType()
|
|
protected
|
getTypeInstance(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl,
Class<T> expected)
Create the class instance |
|
void |
initialVisit(MetaDataVisitor visitor)
Visit the node |
|
protected
|
preinstantiatedLookup(ClassLoader cl,
Class<T> expected)
Check for already existing instances. |
|
protected void |
preparePreinstantiatedLookup(MetaDataVisitor visitor)
Check if we can extract the information about existing instance - only on property metadata. |
|
void |
setConfigurator(KernelConfigurator configurator)
Set the configurator |
|
void |
setType(String type)
Set the type |
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
|
| Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData |
|---|
describeVisit, getChildren, getType, getUnderlyingValue, getValue, getValue, setValue, toShortString |
| Methods inherited from class org.jboss.util.JBossObject |
|---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.util.JBossInterface |
|---|
clone, toShortString |
| Field Detail |
|---|
protected String type
protected transient org.jboss.dependency.spi.ControllerContext context
protected transient KernelConfigurator configurator
protected String propertyName
protected String beanName
| Constructor Detail |
|---|
public AbstractTypeMetaData()
public AbstractTypeMetaData(String value)
value - the value| Method Detail |
|---|
public void setType(String type)
type - the typepublic String getType()
public void initialVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
initialVisit in interface MetaDataVisitorNodeinitialVisit in class AbstractValueMetaDatavisitor - the visitorprotected void preparePreinstantiatedLookup(MetaDataVisitor visitor)
visitor - underlying visitor
protected <T> T preinstantiatedLookup(ClassLoader cl,
Class<T> expected)
T - expected typecl - the classloaderexpected - the expected class
protected <T> T checkResult(Object result,
Class<T> expected)
T - the expected typeresult - the resultexpected - expected class
ClassCastException - if result cannot be casted into expected parameter
protected <T> T createInstance(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl,
Class<T> expected,
boolean explicit)
throws Throwable
T - expected typeinfo - the type of reference we are about to setcl - the classloader to useexpected - the expected classexplicit - is type explicit
Throwable - on any error
protected <T> T getTypeInstance(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl,
Class<T> expected)
throws Throwable
T - expected typeinfo - the request typecl - the classloaderexpected - the expected class
Throwable - for any errorprotected abstract Object getDefaultInstance()
public void setConfigurator(KernelConfigurator configurator)
configurator - the configuratorpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class AbstractValueMetaData
protected org.jboss.reflect.spi.ClassInfo getClassInfo(ClassLoader cl)
throws Throwable
cl - classloader
Throwable - for any error
protected org.jboss.reflect.spi.ClassInfo getClassInfo(String classType,
ClassLoader cl)
throws Throwable
Throwable
protected org.jboss.reflect.spi.ClassInfo getClass(MetaDataVisitor visitor,
String classType)
throws Throwable
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||