|
||||||||||
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.AbstractFeatureMetaData
org.jboss.beans.metadata.plugins.AbstractLifecycleMetaData
public class AbstractLifecycleMetaData
Metadata for lifecycle.
Field Summary | |
---|---|
protected String |
methodName
The method name |
protected List<ParameterMetaData> |
parameters
The paramaters List |
protected ControllerState |
state
The state |
protected String |
type
The type - create, start, stop, destroy, install |
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 | |
---|---|
AbstractLifecycleMetaData()
Create a new lifecycle meta data |
|
AbstractLifecycleMetaData(String methodName)
|
Method Summary | |
---|---|
protected void |
addChildren(Set<MetaDataVisitorNode> children)
|
AbstractLifecycleMetaData |
clone()
Clone the object |
protected void |
doClone(AbstractLifecycleMetaData clone)
|
protected org.jboss.reflect.spi.ClassInfo |
getClassInfo(KernelControllerContext context)
|
String |
getMethodName()
Get the method name. |
List<ParameterMetaData> |
getParameters()
Get the parameters. |
ControllerState |
getState()
Get the state |
String |
getType()
Get type - create, start, stop, destroy, install |
org.jboss.reflect.spi.TypeInfo |
getType(MetaDataVisitor visitor,
MetaDataVisitorNode previous)
Get the injectee type info. |
void |
initialVisit(MetaDataVisitor visitor)
Visit the node |
boolean |
isIgnored()
Is default ignored. |
void |
setIgnored(boolean ignored)
Set ignored attribute. |
void |
setMethodName(String name)
Set the method name |
void |
setParameters(List<ParameterMetaData> parameters)
Set the parameters |
void |
setState(ControllerState state)
Set the state |
void |
setType(String type)
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractFeatureMetaData |
---|
applyCollectionOrMapCheck, describeVisit, doClone, getAnnotations, getChildren, getDescription, setAnnotations, setDescription |
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.beans.metadata.spi.FeatureMetaData |
---|
getAnnotations, getDescription |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
toShortString |
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode |
---|
describeVisit, getChildren |
Field Detail |
---|
protected ControllerState state
protected String methodName
protected List<ParameterMetaData> parameters
protected String type
Constructor Detail |
---|
public AbstractLifecycleMetaData()
public AbstractLifecycleMetaData(String methodName)
Method Detail |
---|
public ControllerState getState()
LifecycleMetaData
getState
in interface LifecycleMetaData
public void setState(ControllerState state)
LifecycleMetaData
setState
in interface LifecycleMetaData
state
- the statepublic String getMethodName()
LifecycleMetaData
getMethodName
in interface LifecycleMetaData
public void setMethodName(String name)
setMethodName
in interface LifecycleMetaData
name
- the factory methodpublic boolean isIgnored()
LifecycleMetaData
isIgnored
in interface LifecycleMetaData
public void setIgnored(boolean ignored)
ignored
- the ignoredpublic List<ParameterMetaData> getParameters()
ParameterizedMetaData
getParameters
in interface ParameterizedMetaData
public void setParameters(List<ParameterMetaData> parameters)
setParameters
in interface MutableParameterizedMetaData
parameters
- Listpublic String getType()
public void setType(String type)
public void initialVisit(MetaDataVisitor visitor)
MetaDataVisitorNode
initialVisit
in interface MetaDataVisitorNode
initialVisit
in class AbstractFeatureMetaData
visitor
- the visitorprotected void addChildren(Set<MetaDataVisitorNode> children)
addChildren
in class AbstractFeatureMetaData
public org.jboss.reflect.spi.TypeInfo getType(MetaDataVisitor visitor, MetaDataVisitorNode previous) throws Throwable
TypeProvider
getType
in interface TypeProvider
visitor
- meda data visitorprevious
- previous node in the stack
Throwable
- if could not determine classprotected org.jboss.reflect.spi.ClassInfo getClassInfo(KernelControllerContext context) throws Throwable
Throwable
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractFeatureMetaData
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class AbstractFeatureMetaData
public AbstractLifecycleMetaData clone()
MetaDataVisitorNode
clone
in interface MetaDataVisitorNode
clone
in interface org.jboss.util.JBossInterface
clone
in class org.jboss.util.JBossObject
protected void doClone(AbstractLifecycleMetaData clone)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |