|
||||||||||
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.AbstractDependencyValueMetaData
org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData
public class AbstractInjectionValueMetaData
Injection value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.beans.metadata.plugins.AbstractDependencyValueMetaData |
---|
AbstractDependencyValueMetaData.OptionalDependencyItem |
Field Summary | |
---|---|
protected FromContext |
fromContext
|
protected InjectOption |
injectionOption
|
protected AutowireType |
injectionType
|
protected AbstractPropertyMetaData |
propertyMetaData
Simplyifies things with AutowireType.BY_NAME |
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractDependencyValueMetaData |
---|
context, dependentState, optionalWhenRequired, property, search, whenRequiredState |
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 | |
---|---|
AbstractInjectionValueMetaData()
Create a new injection value |
|
AbstractInjectionValueMetaData(Object value)
Create a new injection value |
|
AbstractInjectionValueMetaData(Object value,
String property)
Create a new injection value |
Method Summary | |
---|---|
protected boolean |
addDependencyItem()
|
protected void |
addInstallItem(Object name)
Add install/callback item. |
AbstractInjectionValueMetaData |
clone()
Clone the object |
void |
describeVisit(MetaDataVisitor visitor)
Revisit the node |
FromContext |
getFromContext()
|
InjectOption |
getInjectionOption()
|
AutowireType |
getInjectionType()
|
AbstractPropertyMetaData |
getPropertyMetaData()
|
Object |
getUnderlyingValue()
Get the underlying value |
Object |
getValue(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl)
Get the value. |
void |
initialVisit(MetaDataVisitor visitor)
Visit the node |
protected boolean |
isLookupValid(ControllerContext lookup)
|
protected boolean |
isOptional()
|
void |
setFromContext(FromContext fromContext)
|
void |
setInjectionOption(InjectOption injectionOption)
|
void |
setInjectionType(AutowireType injectionType)
|
void |
setPropertyMetaData(AbstractPropertyMetaData propertyMetaData)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractDependencyValueMetaData |
---|
addOptionalDependency, getControllerContext, getDependentState, getProperty, getSearch, getWhenRequiredState, isSearchApplied, setDependentState, setProperty, setSearch, setValue, setValueObject, setWhenRequiredState |
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData |
---|
getChildren, getType, getValue, isUseJMXObjectNameFix, toShortString |
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, 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 |
---|
toShortString |
Field Detail |
---|
protected AutowireType injectionType
protected InjectOption injectionOption
protected FromContext fromContext
protected AbstractPropertyMetaData propertyMetaData
Constructor Detail |
---|
public AbstractInjectionValueMetaData()
public AbstractInjectionValueMetaData(Object value)
value
- the valuepublic AbstractInjectionValueMetaData(Object value, String property)
value
- the valueproperty
- the propertyMethod Detail |
---|
public AutowireType getInjectionType()
public void setInjectionType(AutowireType injectionType)
public InjectOption getInjectionOption()
public void setInjectionOption(InjectOption injectionOption)
public FromContext getFromContext()
public void setFromContext(FromContext fromContext)
public AbstractPropertyMetaData getPropertyMetaData()
public void setPropertyMetaData(AbstractPropertyMetaData propertyMetaData)
protected void addInstallItem(Object name)
name
- the callback nameprotected boolean isLookupValid(ControllerContext lookup)
isLookupValid
in class AbstractDependencyValueMetaData
protected boolean isOptional()
isOptional
in class AbstractDependencyValueMetaData
public Object getValue(org.jboss.reflect.spi.TypeInfo info, ClassLoader cl) throws Throwable
ValueMetaData
getValue
in interface ValueMetaData
getValue
in class AbstractDependencyValueMetaData
info
- the type infocl
- the classloader
Throwable
- for any errorprotected boolean addDependencyItem()
addDependencyItem
in class AbstractDependencyValueMetaData
public Object getUnderlyingValue()
ValueMetaData
getUnderlyingValue
in interface ValueMetaData
getUnderlyingValue
in class AbstractValueMetaData
public void initialVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
initialVisit
in interface MetaDataVisitorNode
initialVisit
in class AbstractDependencyValueMetaData
visitor
- the visitorpublic void describeVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
describeVisit
in interface MetaDataVisitorNode
describeVisit
in class AbstractValueMetaData
visitor
- the visitorpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractDependencyValueMetaData
public AbstractInjectionValueMetaData clone()
MetaDataVisitorNode
clone
in interface MetaDataVisitorNode
clone
in interface org.jboss.util.JBossInterface
clone
in class AbstractDependencyValueMetaData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |