|
||||||||||
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.AbstractValueFactoryMetaData
public class AbstractValueFactoryMetaData
ValueFactory value.
Field Summary | |
---|---|
protected KernelControllerContext |
context
The context |
protected String |
defaultValue
The defaultValue |
protected ControllerState |
dependentState
The required state of the dependency or null to look in the registry |
protected String |
method
The property name |
protected String |
parameter
The parameter |
protected List<ParameterMetaData> |
parameters
The parameters |
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 | |
---|---|
AbstractValueFactoryMetaData()
Create a new dependency value |
|
AbstractValueFactoryMetaData(Object value)
Create a new dependency value |
|
AbstractValueFactoryMetaData(Object value,
String method)
Create a new value-factory value |
|
AbstractValueFactoryMetaData(Object value,
String method,
String defaultValue)
Create a new value-factory value |
Method Summary | |
---|---|
AbstractValueFactoryMetaData |
clone()
Clone the object |
Iterator<? extends MetaDataVisitorNode> |
getChildren()
Return the child nodes |
String |
getDefaultValue()
Get the default value. |
ControllerState |
getDependentState()
Get the dependant state. |
String |
getMethod()
Get the method |
String |
getParameter()
Get the parameter. |
List<ParameterMetaData> |
getParameters()
Get the parameters. |
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 |
void |
setBean(String bean)
|
void |
setDefaultValue(String defaultValue)
Set the default value. |
void |
setDependentState(ControllerState dependentState)
Set the required state of the dependency |
void |
setMethod(String method)
Set the property |
void |
setParameter(String parameter)
Set the parameter. |
void |
setParameters(List<ParameterMetaData> parameters)
Set the parameters. |
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, getType, getUnderlyingValue, getValue, isUseJMXObjectNameFix, setValue, 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 String method
protected String parameter
protected String defaultValue
protected ControllerState whenRequiredState
protected ControllerState dependentState
protected List<ParameterMetaData> parameters
Constructor Detail |
---|
public AbstractValueFactoryMetaData()
public AbstractValueFactoryMetaData(Object value)
value
- the valuepublic AbstractValueFactoryMetaData(Object value, String method)
value
- the valuemethod
- the methodpublic AbstractValueFactoryMetaData(Object value, String method, String defaultValue)
value
- the valuemethod
- the methoddefaultValue
- the defaultMethod Detail |
---|
public void setBean(String bean)
public String getMethod()
public void setMethod(String method)
method
- the property namepublic String getParameter()
public void setParameter(String parameter)
parameter
- the parameterpublic 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 String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- default valuepublic List<ParameterMetaData> getParameters()
getParameters
in interface ParameterizedMetaData
public void setParameters(List<ParameterMetaData> parameters)
setParameters
in interface MutableParameterizedMetaData
parameters
- the parameterspublic void initialVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
initialVisit
in interface MetaDataVisitorNode
initialVisit
in class AbstractValueMetaData
visitor
- the visitorpublic Iterator<? extends MetaDataVisitorNode> getChildren()
MetaDataVisitorNode
getChildren
in interface MetaDataVisitorNode
getChildren
in class AbstractValueMetaData
public Object getValue(org.jboss.reflect.spi.TypeInfo info, ClassLoader cl) throws Throwable
ValueMetaData
getValue
in interface ValueMetaData
getValue
in class AbstractValueMetaData
info
- the type infocl
- the classloader
Throwable
- for any errorpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractValueMetaData
public AbstractValueFactoryMetaData clone()
MetaDataVisitorNode
clone
in interface MetaDataVisitorNode
clone
in interface org.jboss.util.JBossInterface
clone
in class AbstractValueMetaData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |