|
||||||||||
| 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.
| Nested Class Summary | |
|---|---|
protected class |
AbstractDependencyValueMetaData.OptionalDependencyItem
Optional depedency item. |
| Field Summary | |
|---|---|
protected KernelControllerContext |
context
The context |
protected ControllerState |
dependentState
The required state of the dependency or null to look in the registry |
protected ControllerState |
optionalWhenRequired
The when required, keep it for optional handling |
protected String |
property
The property name |
protected SearchInfo |
search
The search type |
protected 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()
|
protected void |
addOptionalDependency(Controller controller,
ControllerContext lookup)
Add optional dependency. |
AbstractDependencyValueMetaData |
clone()
Clone the object |
protected ControllerContext |
getControllerContext(Object name,
ControllerState state)
Get controller context. |
ControllerState |
getDependentState()
Get the required state of dependency. |
String |
getProperty()
Get the property |
SearchInfo |
getSearch()
Get search type. |
Object |
getValue(org.jboss.reflect.spi.TypeInfo info,
ClassLoader cl)
Get the value. |
ControllerState |
getWhenRequiredState()
Get when required state. |
void |
initialVisit(MetaDataVisitor visitor)
Visit the node |
protected boolean |
isLookupValid(ControllerContext lookup)
|
protected boolean |
isOptional()
|
protected boolean |
isSearchApplied()
Is search applied. |
void |
setDependentState(ControllerState dependentState)
Set the required state of the dependency |
void |
setProperty(String property)
Set the property |
void |
setSearch(SearchInfo search)
Set search type. |
void |
setValue(Object value)
|
void |
setValueObject(Object value)
|
void |
setWhenRequiredState(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, 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 transient KernelControllerContext context
protected transient ControllerState optionalWhenRequired
protected String property
protected ControllerState whenRequiredState
protected ControllerState dependentState
protected SearchInfo search
| 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(ControllerState whenRequiredState)
whenRequiredState - the when required state or null if it uses current context statepublic ControllerState getWhenRequiredState()
public void setDependentState(ControllerState dependentState)
dependentState - the required state or null if it must be in the registrypublic ControllerState getDependentState()
public void setValue(Object value)
setValue in class AbstractValueMetaDatapublic void setValueObject(Object value)
public void setSearch(SearchInfo search)
search - the search typepublic SearchInfo getSearch()
protected boolean isSearchApplied()
protected boolean isLookupValid(ControllerContext lookup)
protected boolean isOptional()
protected void addOptionalDependency(Controller controller,
ControllerContext lookup)
controller - the controllerlookup - the lookup context
protected ControllerContext getControllerContext(Object name,
ControllerState state)
name - the namestate - the state
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 AbstractValueMetaDatapublic AbstractDependencyValueMetaData clone()
MetaDataVisitorNode
clone in interface MetaDataVisitorNodeclone in interface org.jboss.util.JBossInterfaceclone in class AbstractValueMetaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||