public class ManagedObjectImpl extends Object implements MutableManagedObject
| Constructor and Description |
|---|
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)
Deprecated.
|
ManagedObjectImpl(String name,
Set<ManagedProperty> properties,
Set<ManagedOperation> operations)
Create a new ManagedObjectImpl
|
ManagedObjectImpl(String name,
String nameType,
String attachmentName,
Map<String,ManagedProperty> properties,
HashSet<ManagedOperation> operations,
Serializable attachment)
Deprecated.
|
ManagedObjectImpl(String name,
String nameType,
String attachmentName,
Map<String,ManagedProperty> properties,
Set<ManagedOperation> operations,
Object attachment)
Create a new ManagedObjectImpl
|
ManagedObjectImpl(String name,
String nameType,
String attachmentName,
Set<ManagedProperty> properties,
HashSet<ManagedOperation> operations,
Serializable attachment)
Deprecated.
|
ManagedObjectImpl(String name,
String nameType,
String attachmentName,
Set<ManagedProperty> properties,
Set<ManagedOperation> operations,
Object attachment)
Create a new ManagedObjectImpl
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,Annotation> |
getAnnotations()
Get the annotations associated with the property
|
Object |
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
|
ManagedObject |
getParent()
Get the parent ManagedObject
|
Map<String,ManagedProperty> |
getProperties()
Get the properties
|
ManagedProperty |
getProperty(String name)
Get a property
|
Set<String> |
getPropertyNames()
Get the property names
|
<T> T |
getTransientAttachment(Class<T> expectedType)
Get an attachment from the property,
uses the expected type as both the name
and to cast the resulting object.
|
Object |
getTransientAttachment(String name)
Get a transient attachment from the property.
|
int |
hashCode() |
void |
setAnnotations(Map<String,Annotation> annotations) |
void |
setAttachment(Object attachment)
Set the attachment.
|
void |
setAttachmentName(String attachmentName) |
void |
setComponentName(Object name)
Set the runtime component name.
|
void |
setName(String name)
Set the external name by which the ManagedObject is known
|
void |
setNameType(String nameType) |
void |
setOperations(Set<ManagedOperation> operations)
Set the ManagedOperation associated with the ManagedObject.
|
void |
setParent(ManagedObject parent)
Set the parent ManagedObject.
|
void |
setProperties(Map<String,ManagedProperty> properties)
Set the ManagedObject ManagedProperty mapping.
|
void |
setTransientAttachment(String name,
Object attachment)
Set a transient attachment against the property.
|
String |
toString() |
protected void |
toString(StringBuilder sb)
Append the name and props
|
public ManagedObjectImpl(String name)
name - - The object name used for ManagementRef resolutionpublic ManagedObjectImpl(String name, Set<ManagedProperty> properties)
name - - The object name used for ManagementRef resolutionproperties - the propertiespublic ManagedObjectImpl(String name, Set<ManagedProperty> properties, Set<ManagedOperation> operations)
name - - The object name used for ManagementRef resolutionproperties - the propertiesoperations - the operations@Deprecated public ManagedObjectImpl(String name, Set<ManagedProperty> properties, HashSet<ManagedOperation> operations)
public ManagedObjectImpl(String name, String nameType, String attachmentName, Set<ManagedProperty> properties, Set<ManagedOperation> operations, Object attachment)
name - - The object name used for ManagementRef resolutionnameType - - The name type/qualifier used for ManagementRef resolutionattachmentName - the attachment nameproperties - the propertiesoperations - the operationsattachment - the attachment@Deprecated public ManagedObjectImpl(String name, String nameType, String attachmentName, Set<ManagedProperty> properties, HashSet<ManagedOperation> operations, Serializable attachment)
public ManagedObjectImpl(String name, String nameType, String attachmentName, Map<String,ManagedProperty> properties, Set<ManagedOperation> operations, Object attachment)
name - - The object name used for ManagementRef resolutionnameType - - The name type/qualifier used for ManagementRef resolutionattachmentName - the attachment nameproperties - the propertiesoperations - the operationsattachment - the attachment@Deprecated public ManagedObjectImpl(String name, String nameType, String attachmentName, Map<String,ManagedProperty> properties, HashSet<ManagedOperation> operations, Serializable attachment)
public String getName()
ManagedCommongetName in interface ManagedCommonManagementObject#name}},
ManagementObjectID#name}}public void setName(String name)
MutableManagedObjectsetName in interface MutableManagedObjectManagementObject#name}},
ManagementObjectID#name}}public String getNameType()
ManagedCommongetNameType in interface ManagedCommonManagementObject#type},
ManagementObjectID#type}public void setNameType(String nameType)
public String getAttachmentName()
ManagedCommongetAttachmentName in interface ManagedCommonManagementObject#attachmentName}}public void setAttachmentName(String attachmentName)
public Map<String,Annotation> getAnnotations()
getAnnotations in interface ManagedObjectpublic void setAnnotations(Map<String,Annotation> annotations)
public Set<String> getPropertyNames()
ManagedCommongetPropertyNames in interface ManagedCommonpublic ManagedProperty getProperty(String name)
ManagedCommongetProperty in interface ManagedCommonname - the namepublic Map<String,ManagedProperty> getProperties()
ManagedCommongetProperties in interface ManagedCommonpublic void setProperties(Map<String,ManagedProperty> properties)
MutableManagedObjectsetProperties in interface MutableManagedObjectproperties - - the ManagedProperty mapping.public Object getAttachment()
ManagedObjectgetAttachment in interface ManagedObjectpublic void setAttachment(Object attachment)
setAttachment in interface MutableManagedObjectattachment - the attachment.public Set<ManagedOperation> getOperations()
getOperations in interface ManagedCommonpublic void setOperations(Set<ManagedOperation> operations)
MutableManagedObjectsetOperations in interface MutableManagedObjectoperations - - the ManagedOperations for the ManagedObject.public ManagedObject getParent()
ManagedObjectgetParent in interface ManagedCommongetParent in interface ManagedObjectpublic void setParent(ManagedObject parent)
MutableManagedObjectsetParent in interface MutableManagedObjectparent - - the parent ManagedObject, null if no parent exists.public Object getComponentName()
ManagedCommongetComponentName in interface ManagedCommonManagementRuntimeRef}public void setComponentName(Object name)
MutableManagedObjectsetComponentName in interface MutableManagedObjectManagementRuntimeRef}public <T> T getTransientAttachment(Class<T> expectedType)
ManagedObjectgetTransientAttachment in interface ManagedObjectT - the expected typeexpectedType - the expected typepublic Object getTransientAttachment(String name)
ManagedObjectgetTransientAttachment in interface ManagedObjectname - the nameManagedObject.setTransientAttachment(String, Object)public void setTransientAttachment(String name, Object attachment)
ManagedObjectsetTransientAttachment in interface ManagedObjectname - the nameattachment - the attachment, pass null to remove an attachmentprotected void toString(StringBuilder sb)
sb - the buffer to append the name and props toCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.