org.jboss.beans.metadata.plugins
Class AbstractInstallMetaData

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.AbstractInstallMetaData
All Implemented Interfaces:
Serializable, Cloneable, MutableParameterizedMetaData, TypeProvider, FeatureMetaData, InstallMetaData, LifecycleMetaData, MetaDataVisitorNode, ParameterizedMetaData, org.jboss.util.JBossInterface

public class AbstractInstallMetaData
extends AbstractLifecycleMetaData
implements InstallMetaData, Serializable

Metadata for installation.

Version:
$Revision: 71794 $
Author:
Ales Justin, Adrian Brock
See Also:
Serialized Form

Nested Class Summary
 class AbstractInstallMetaData.InstallationDependencyItem
          An InstallationDependencyItem.
 
Field Summary
protected  String bean
          The bean name
protected  ControllerState dependentState
          The required state of the dependency or null to look in the registry
 
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
AbstractInstallMetaData()
          Create a new install meta data
 
Method Summary
 AbstractInstallMetaData clone()
          Clone the object
 String getBean()
          Get the bean name.
protected  org.jboss.reflect.spi.ClassInfo getClassInfo(KernelControllerContext context)
           
 ControllerState getDependentState()
          Get the required state of the dependency
 void initialVisit(MetaDataVisitor visitor)
          Visit the node
 void setBean(String bean)
          Set the bean
 void setDependentState(ControllerState dependentState)
          Set the required state of the dependency
 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, doClone, getMethodName, getParameters, getState, getType, getType, isIgnored, setIgnored, setMethodName, setParameters, setState, setType
 
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.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
toShortString
 
Methods inherited from interface org.jboss.beans.metadata.spi.MetaDataVisitorNode
describeVisit, getChildren
 

Field Detail

bean

protected String bean
The bean name


dependentState

protected ControllerState dependentState
The required state of the dependency or null to look in the registry

Constructor Detail

AbstractInstallMetaData

public AbstractInstallMetaData()
Create a new install meta data

Method Detail

getBean

public String getBean()
Description copied from interface: InstallMetaData
Get the bean name.

Specified by:
getBean in interface InstallMetaData
Returns:
the bean name.

setBean

public void setBean(String bean)
Set the bean

Parameters:
bean - the bean

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: InstallMetaData
Get the required state of the dependency

Specified by:
getDependentState in interface InstallMetaData
Returns:
the required state or null if it must be in the registry

initialVisit

public void initialVisit(MetaDataVisitor visitor)
Description copied from interface: MetaDataVisitorNode
Visit the node

Specified by:
initialVisit in interface MetaDataVisitorNode
Overrides:
initialVisit in class AbstractLifecycleMetaData
Parameters:
visitor - the visitor

getClassInfo

protected org.jboss.reflect.spi.ClassInfo getClassInfo(KernelControllerContext context)
                                                throws Throwable
Overrides:
getClassInfo in class AbstractLifecycleMetaData
Throws:
Throwable

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

clone

public AbstractInstallMetaData clone()
Description copied from interface: MetaDataVisitorNode
Clone the object

Specified by:
clone in interface MetaDataVisitorNode
Specified by:
clone in interface org.jboss.util.JBossInterface
Overrides:
clone in class AbstractLifecycleMetaData
Returns:
a clone of the object


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