org.jboss.managed.plugins
Class ManagedObjectImpl

java.lang.Object
  extended by org.jboss.managed.plugins.ManagedObjectImpl
All Implemented Interfaces:
Serializable, ManagedCommon, ManagedObject

public class ManagedObjectImpl
extends Object
implements ManagedObject

ManagedObjectImpl.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
ManagedObjectImpl(String name)
          Create a new ManagedObjectImpl
ManagedObjectImpl(String name, Set<ManagedProperty> properties)
          Create a new ManagedObjectImpl
ManagedObjectImpl(String name, Set<ManagedProperty> properties, HashSet<ManagedOperation> operations)
          Create a new ManagedObjectImpl
ManagedObjectImpl(String name, String nameType, String attachmentName, Map<String,ManagedProperty> properties, HashSet<ManagedOperation> operations, Serializable attachment)
          Create a new ManagedObjectImpl
ManagedObjectImpl(String name, String nameType, String attachmentName, Set<ManagedProperty> properties, HashSet<ManagedOperation> operations, Serializable attachment)
          Create a new ManagedObjectImpl
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,Annotation> getAnnotations()
          Get the annotations associated with the property
 Serializable getAttachment()
          Get the underlying object
 String getAttachmentName()
          Get the attachment name
 Object getComponentName()
          Get the runtime component name.
 String getName()
          Get the external name by which the ManagedObject is known
 String getNameType()
          Get the external name type/qualifier.
 Set<ManagedOperation> getOperations()
          get the ManagedOperations
 Map<String,ManagedProperty> getProperties()
          Get the properties
 ManagedProperty getProperty(String name)
          Get a property
 Set<String> getPropertyNames()
          Get the property names
 int hashCode()
           
 void setAnnotations(Map<String,Annotation> annotations)
           
 void setAttachment(Serializable attachment)
          Set the attachment.
 void setAttachmentName(String attachmentName)
           
 void setComponentName(Object name)
           
 void setName(String name)
           
 void setNameType(String nameType)
           
 void setOperations(Set<ManagedOperation> operations)
           
 void setProperties(Map<String,ManagedProperty> properties)
           
 String toString()
           
protected  void toString(StringBuilder sb)
          Append the name and props
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagedObjectImpl

public ManagedObjectImpl(String name)
Create a new ManagedObjectImpl

Parameters:
name - - The object name used for ManagementRef resolution

ManagedObjectImpl

public ManagedObjectImpl(String name,
                         Set<ManagedProperty> properties)
Create a new ManagedObjectImpl

Parameters:
name - - The object name used for ManagementRef resolution
properties - the properties

ManagedObjectImpl

public ManagedObjectImpl(String name,
                         Set<ManagedProperty> properties,
                         HashSet<ManagedOperation> operations)
Create a new ManagedObjectImpl

Parameters:
name - - The object name used for ManagementRef resolution
properties - the properties
operations - the operations

ManagedObjectImpl

public ManagedObjectImpl(String name,
                         String nameType,
                         String attachmentName,
                         Set<ManagedProperty> properties,
                         HashSet<ManagedOperation> operations,
                         Serializable attachment)
Create a new ManagedObjectImpl

Parameters:
name - - The object name used for ManagementRef resolution
nameType - - The name type/qualifier used for ManagementRef resolution
attachmentName - the attachment name
properties - the properties
operations - the operations
attachment - the attachment

ManagedObjectImpl

public ManagedObjectImpl(String name,
                         String nameType,
                         String attachmentName,
                         Map<String,ManagedProperty> properties,
                         HashSet<ManagedOperation> operations,
                         Serializable attachment)
Create a new ManagedObjectImpl

Parameters:
name - - The object name used for ManagementRef resolution
nameType - - The name type/qualifier used for ManagementRef resolution
attachmentName - the attachment name
properties - the properties
operations - the operations
attachment - the attachment
Method Detail

getName

public String getName()
Description copied from interface: ManagedCommon
Get the external name by which the ManagedObject is known

Specified by:
getName in interface ManagedCommon
Returns:
the name
See Also:
ManagementObject#name}}, ManagementObjectID#name}}

setName

public void setName(String name)

getNameType

public String getNameType()
Description copied from interface: ManagedCommon
Get the external name type/qualifier.

Specified by:
getNameType in interface ManagedCommon
Returns:
the name type
See Also:
ManagementObject#type}, ManagementObjectID#type}

setNameType

public void setNameType(String nameType)

getAttachmentName

public String getAttachmentName()
Description copied from interface: ManagedCommon
Get the attachment name

Specified by:
getAttachmentName in interface ManagedCommon
Returns:
the name
See Also:
ManagementObject#attachmentName}}

setAttachmentName

public void setAttachmentName(String attachmentName)

getAnnotations

public Map<String,Annotation> getAnnotations()
Get the annotations associated with the property

Specified by:
getAnnotations in interface ManagedObject
Returns:
the annotations associated with the property

setAnnotations

public void setAnnotations(Map<String,Annotation> annotations)

getPropertyNames

public Set<String> getPropertyNames()
Description copied from interface: ManagedCommon
Get the property names

Specified by:
getPropertyNames in interface ManagedCommon
Returns:
the property names

getProperty

public ManagedProperty getProperty(String name)
Description copied from interface: ManagedCommon
Get a property

Specified by:
getProperty in interface ManagedCommon
Parameters:
name - the name
Returns:
the property

getProperties

public Map<String,ManagedProperty> getProperties()
Description copied from interface: ManagedCommon
Get the properties

Specified by:
getProperties in interface ManagedCommon
Returns:
the properties

setProperties

public void setProperties(Map<String,ManagedProperty> properties)

getAttachment

public Serializable getAttachment()
Description copied from interface: ManagedObject
Get the underlying object

Specified by:
getAttachment in interface ManagedObject
Returns:
the underlying object

setAttachment

public void setAttachment(Serializable attachment)
Set the attachment.

Parameters:
attachment - the attachment.

getOperations

public Set<ManagedOperation> getOperations()
get the ManagedOperations

Specified by:
getOperations in interface ManagedCommon
Returns:
set of managed operations

setOperations

public void setOperations(Set<ManagedOperation> operations)

getComponentName

public Object getComponentName()
Description copied from interface: ManagedObject
Get the runtime component name.

Specified by:
getComponentName in interface ManagedObject
Returns:
name of runtime component if one exists, null if no component exists.
See Also:
ManagementRuntimeRef}

setComponentName

public void setComponentName(Object name)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toString

protected void toString(StringBuilder sb)
Append the name and props

Parameters:
sb - the buffer to append the name and props to


Copyright © 2008 JBoss Inc.. All Rights Reserved.