|
||||||||||
| 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 org.jboss.dependency.spi.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 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 | |
|---|---|
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 | |
|---|---|
Iterator<? extends MetaDataVisitorNode> |
getChildren()
Return the child nodes |
String |
getDefaultValue()
Get the default value. |
org.jboss.dependency.spi.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. |
org.jboss.dependency.spi.ControllerState |
getWhenRequiredState()
Get when required state. |
void |
initialVisit(MetaDataVisitor visitor)
Visit the node |
void |
setDefaultValue(String defaultValue)
Set the default value. |
void |
setDependentState(org.jboss.dependency.spi.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(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, 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 method
protected String parameter
protected String defaultValue
protected org.jboss.dependency.spi.ControllerState whenRequiredState
protected org.jboss.dependency.spi.ControllerState dependentState
protected List<ParameterMetaData> parameters
| Constructor Detail |
|---|
public AbstractValueFactoryMetaData()
public AbstractValueFactoryMetaData(Object value)
value - the value
public AbstractValueFactoryMetaData(Object value,
String method)
value - the valuemethod - the method
public AbstractValueFactoryMetaData(Object value,
String method,
String defaultValue)
value - the valuemethod - the methoddefaultValue - the default| Method Detail |
|---|
public String getMethod()
public void setMethod(String method)
method - the property namepublic String getParameter()
public void setParameter(String parameter)
parameter - the parameterpublic 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()
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - default valuepublic List<ParameterMetaData> getParameters()
getParameters in interface ParameterizedMetaDatapublic void setParameters(List<ParameterMetaData> parameters)
setParameters in interface MutableParameterizedMetaDataparameters - the parameterspublic void initialVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
initialVisit in interface MetaDataVisitorNodeinitialVisit in class AbstractValueMetaDatavisitor - the visitorpublic Iterator<? extends MetaDataVisitorNode> getChildren()
MetaDataVisitorNode
getChildren in interface MetaDataVisitorNodegetChildren in class AbstractValueMetaData
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 errorpublic 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 | |||||||||