org.jboss.beans.metadata.plugins
Class AbstractCallbackMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
          extended by org.jboss.beans.metadata.plugins.AbstractLifecycleMetaData
              extended by org.jboss.beans.metadata.plugins.AbstractCallbackMetaData
All Implemented Interfaces:
Serializable, Cloneable, MutableParameterizedMetaData, TypeProvider, CallbackMetaData, FeatureMetaData, LifecycleMetaData, MetaDataVisitorNode, ParameterizedMetaData, org.jboss.util.JBossInterface
Direct Known Subclasses:
InstallCallbackMetaData, UninstallCallbackMetaData

public abstract class AbstractCallbackMetaData
extends AbstractLifecycleMetaData
implements CallbackMetaData, Serializable

Metadata for callback.

Author:
Ales Justin
See Also:
Serialized Form

Field Summary
protected  Cardinality cardinality
          The cardinality
protected  ControllerState dependentState
          The required state of the dependency
protected  org.jboss.reflect.spi.MethodInfo methodInfo
          The method info
protected  String property
          The property name
protected  org.jboss.beans.info.spi.PropertyInfo propertyInfo
          The property info
protected  String signature
          The signature
 
Fields inherited from class org.jboss.beans.metadata.plugins.AbstractLifecycleMetaData
methodName, parameters, state, type
 
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
AbstractCallbackMetaData()
           
 
Method Summary
protected abstract  void addCallback(MetaDataVisitor visitor, CallbackItem<?> callback)
          Add install / uninstrall callback.
 void describeVisit(MetaDataVisitor vistor)
          Revisit the node
 Cardinality getCardinality()
          Get the cardinality.
 ControllerState getDependentState()
          Get the required state of the dependency
 String getProperty()
          Get the property name.
 String getSignature()
          Get signature.
 void setCardinality(Cardinality cardinality)
          Set the cardinality.
 void setDependentState(ControllerState dependentState)
          Set the required state of the dependency
 void setMethodInfo(org.jboss.reflect.spi.MethodInfo methodInfo)
           
 void setProperty(String property)
          Set the property.
 void setPropertyInfo(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
           
 void setSignature(String signature)
          Set the signature.
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractLifecycleMetaData
addChildren, clone, doClone, getClassInfo, getMethodName, getParameters, getState, getType, getType, initialVisit, isIgnored, setIgnored, setMethodName, setParameters, setState, setType
 
Methods inherited from class org.jboss.beans.metadata.plugins.AbstractFeatureMetaData
applyCollectionOrMapCheck, 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.LifecycleMetaData
getMethodName, getState, isIgnored, setMethodName, setState
 
Methods inherited from interface org.jboss.beans.metadata.spi.ParameterizedMetaData
getParameters
 
Methods inherited from interface org.jboss.beans.metadata.spi.FeatureMetaData
getAnnotations, getDescription
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString
 
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode
clone, getChildren, initialVisit
 

Field Detail

cardinality

protected Cardinality cardinality
The cardinality


property

protected String property
The property name


dependentState

protected ControllerState dependentState
The required state of the dependency


signature

protected String signature
The signature


propertyInfo

protected transient org.jboss.beans.info.spi.PropertyInfo propertyInfo
The property info


methodInfo

protected transient org.jboss.reflect.spi.MethodInfo methodInfo
The method info

Constructor Detail

AbstractCallbackMetaData

public AbstractCallbackMetaData()
Method Detail

getProperty

public String getProperty()
Description copied from interface: CallbackMetaData
Get the property name.

Specified by:
getProperty in interface CallbackMetaData
Returns:
the property name.

setProperty

public void setProperty(String property)
Set the property.

Parameters:
property - property name

getCardinality

public Cardinality getCardinality()
Description copied from interface: CallbackMetaData
Get the cardinality.

Specified by:
getCardinality in interface CallbackMetaData
Returns:
cardinality

setCardinality

public void setCardinality(Cardinality cardinality)
Set the cardinality.

Parameters:
cardinality - the cardinality

getSignature

public String getSignature()
Description copied from interface: CallbackMetaData
Get signature.

Specified by:
getSignature in interface CallbackMetaData
Returns:
method / property parameter signature

setSignature

public void setSignature(String signature)
Set the signature.

Parameters:
signature - method / property parameter signature

setDependentState

public void setDependentState(ControllerState dependentState)
Set the required state of the dependency

Parameters:
dependentState - the required state or null if it must be in the registry

getDependentState

public ControllerState getDependentState()
Description copied from interface: CallbackMetaData
Get the required state of the dependency

Specified by:
getDependentState in interface CallbackMetaData
Returns:
the required state

setPropertyInfo

public void setPropertyInfo(org.jboss.beans.info.spi.PropertyInfo propertyInfo)

setMethodInfo

public void setMethodInfo(org.jboss.reflect.spi.MethodInfo methodInfo)

addCallback

protected abstract void addCallback(MetaDataVisitor visitor,
                                    CallbackItem<?> callback)
Add install / uninstrall callback.

Parameters:
visitor - the meta data visitor
callback - the callback item

describeVisit

public void describeVisit(MetaDataVisitor vistor)
Description copied from interface: MetaDataVisitorNode
Revisit the node

Specified by:
describeVisit in interface MetaDataVisitorNode
Overrides:
describeVisit in class AbstractFeatureMetaData
Parameters:
vistor - the visitor

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class AbstractLifecycleMetaData

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class AbstractLifecycleMetaData


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.