JBoss Managed Parent POM 2.1.1.SP2

org.jboss.managed.plugins
Class ManagedComponentImpl

java.lang.Object
  extended by org.jboss.managed.plugins.DelegateManagedCommonImpl
      extended by org.jboss.managed.plugins.ManagedComponentImpl
All Implemented Interfaces:
Serializable, ManagedCommon, ManagedComponent, MutableManagedComponent

public class ManagedComponentImpl
extends DelegateManagedCommonImpl
implements MutableManagedComponent, Serializable

Managed component impl.

Version:
$Revision: 90231 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
ManagedComponentImpl(ComponentType type, ManagedDeployment owner, ManagedObject mo)
           
ManagedComponentImpl(ComponentType type, ManagedDeployment owner, ManagedObject mo, RunStateMapper stateMapper)
           
 
Method Summary
 Map<String,Annotation> getAnnotations()
          Get the annotations associated with the managed component NOTE: Clients should not use this method - it is intended for server-side use only.
 ManagedDeployment getDeployment()
          The deployment the component is associated with.
 ManagedCommon getParent()
          The components parent should be the defining managed object itself.
 RunState getRunState()
          Get the component run state
 RunStateMapper getStateMapper()
           
 ComponentType getType()
          The component classification as a type/subtype.
 void setOperations(Set<ManagedOperation> operations)
          Set the ManagedOperation associated with the ManagedObject.
 void setProperties(Map<String,ManagedProperty> properties)
          Set the ManagedObject ManagedProperty mapping.
 void setRunState(RunState runState)
          Set the component runtime state
 void setStateMapper(RunStateMapper stateMapper)
           
 String toString()
           
 boolean update()
          Update the component statistic property values.
 RunState updateRunState()
          Update the cached run state
 
Methods inherited from class org.jboss.managed.plugins.DelegateManagedCommonImpl
getAttachmentName, getComponentName, getDelegate, getName, getNameType, getOperations, getProperties, getProperty, getPropertyNames, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.managed.api.ManagedCommon
getAttachmentName, getComponentName, getName, getNameType, getOperations, getProperties, getProperty, getPropertyNames
 

Constructor Detail

ManagedComponentImpl

public ManagedComponentImpl(ComponentType type,
                            ManagedDeployment owner,
                            ManagedObject mo)

ManagedComponentImpl

public ManagedComponentImpl(ComponentType type,
                            ManagedDeployment owner,
                            ManagedObject mo,
                            RunStateMapper stateMapper)
Method Detail

getAnnotations

public Map<String,Annotation> getAnnotations()
Description copied from interface: ManagedComponent
Get the annotations associated with the managed component NOTE: Clients should not use this method - it is intended for server-side use only.

Specified by:
getAnnotations in interface ManagedComponent
Returns:
the annotations associated with the managed component

getStateMapper

public RunStateMapper getStateMapper()

setStateMapper

public void setStateMapper(RunStateMapper stateMapper)

getRunState

public RunState getRunState()
Description copied from interface: ManagedComponent
Get the component run state

Specified by:
getRunState in interface ManagedComponent
Returns:

setRunState

public void setRunState(RunState runState)
Description copied from interface: MutableManagedComponent
Set the component runtime state

Specified by:
setRunState in interface MutableManagedComponent

setOperations

public void setOperations(Set<ManagedOperation> operations)
Description copied from interface: MutableManagedComponent
Set the ManagedOperation associated with the ManagedObject.

Specified by:
setOperations in interface MutableManagedComponent
Parameters:
operations - - the ManagedOperations for the ManagedObject.

setProperties

public void setProperties(Map<String,ManagedProperty> properties)
Description copied from interface: MutableManagedComponent
Set the ManagedObject ManagedProperty mapping.

Specified by:
setProperties in interface MutableManagedComponent
Parameters:
properties - - the ManagedProperty mapping.

updateRunState

public RunState updateRunState()
Update the cached run state

Returns:
the updated cache state

update

public boolean update()
Update the component statistic property values. This needs to be overriden by a subclass in the runtime environment to provide a useful implementation.

Specified by:
update in interface ManagedComponent
Returns:
false always.

getParent

public ManagedCommon getParent()
The components parent should be the defining managed object itself.

Specified by:
getParent in interface ManagedCommon
Overrides:
getParent in class DelegateManagedCommonImpl
Returns:

getDeployment

public ManagedDeployment getDeployment()
Description copied from interface: ManagedComponent
The deployment the component is associated with.

Specified by:
getDeployment in interface ManagedComponent
Returns:
component deployment.

getType

public ComponentType getType()
Description copied from interface: ManagedComponent
The component classification as a type/subtype.

Specified by:
getType in interface ManagedComponent
Returns:
component type.

toString

public String toString()
Overrides:
toString in class Object

JBoss Managed Parent POM 2.1.1.SP2

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