|
||||||||||
| 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
public class AbstractDependencyValueMetaData
Dependency value.
| Field Summary | |
|---|---|
protected KernelControllerContext |
context
The context |
protected org.jboss.dependency.spi.ControllerState |
dependentState
The required state of the dependency or null to look in the registry |
protected String |
property
The property name |
protected org.jboss.dependency.spi.ControllerState |
whenRequiredState
The when required state of the dependency or null to use current context state |
| 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 | |
|---|---|
AbstractDependencyValueMetaData()
Create a new dependency value |
|
AbstractDependencyValueMetaData(Object value)
Create a new dependency value |
|
AbstractDependencyValueMetaData(Object value,
String property)
Create a new dependency value |
|
| Method Summary | |
|---|---|
protected boolean |
addDependencyItem()
|
org.jboss.dependency.spi.ControllerState |
getDependentState()
|
String |
getProperty()
Get the property |
Object |
getValue(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl)
Get the value. |
org.jboss.dependency.spi.ControllerState |
getWhenRequiredState()
|
void |
initialVisit(MetaDataVisitor visitor)
Visit the node |
protected boolean |
isLookupValid(org.jboss.dependency.spi.ControllerContext lookup)
|
void |
setDependentState(org.jboss.dependency.spi.ControllerState dependentState)
Set the required state of the dependency |
void |
setProperty(String property)
Set the property |
void |
setWhenRequiredState(org.jboss.dependency.spi.ControllerState whenRequiredState)
Set the when required state of the dependency |
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
| Methods inherited from class org.jboss.beans.metadata.plugins.AbstractValueMetaData |
|---|
describeVisit, getChildren, getType, getUnderlyingValue, 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 transient KernelControllerContext context
protected String property
protected org.jboss.dependency.spi.ControllerState whenRequiredState
protected org.jboss.dependency.spi.ControllerState dependentState
| Constructor Detail |
|---|
public AbstractDependencyValueMetaData()
public AbstractDependencyValueMetaData(Object value)
value - the value
public AbstractDependencyValueMetaData(Object value,
String property)
value - the valueproperty - the property| Method Detail |
|---|
public String getProperty()
public void setProperty(String property)
property - the property namepublic void setWhenRequiredState(org.jboss.dependency.spi.ControllerState whenRequiredState)
whenRequiredState - the when required state or null if it uses current context statepublic org.jboss.dependency.spi.ControllerState getWhenRequiredState()
public void setDependentState(org.jboss.dependency.spi.ControllerState dependentState)
dependentState - the required state or null if it must be in the registrypublic org.jboss.dependency.spi.ControllerState getDependentState()
protected boolean isLookupValid(org.jboss.dependency.spi.ControllerContext lookup)
public Object getValue(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl)
throws Throwable
ValueMetaData
getValue in interface ValueMetaDatagetValue in class AbstractValueMetaDatainfo - the type infocl - the classloader
Throwable - for any errorprotected boolean addDependencyItem()
public void initialVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
initialVisit in interface MetaDataVisitorNodeinitialVisit in class AbstractValueMetaDatavisitor - the visitorpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class AbstractValueMetaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||