public class DelegateManagedObjectImpl extends Object implements ManagedObject
| Constructor and Description |
|---|
DelegateManagedObjectImpl(ManagedObject delegate) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Annotation> |
getAnnotations()
Get the annotations associated with the managed object
|
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 operations
|
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.
|
void |
setTransientAttachment(String name,
Object attachment)
Set a transient attachment against the property.
|
public DelegateManagedObjectImpl(ManagedObject delegate)
public Map<String,Annotation> getAnnotations()
ManagedObjectgetAnnotations in interface ManagedObjectpublic Object getAttachment()
ManagedObjectgetAttachment in interface ManagedObjectpublic String getAttachmentName()
ManagedCommongetAttachmentName in interface ManagedCommonManagementObject#attachmentName}}public String getName()
ManagedCommongetName in interface ManagedCommonManagementObject#name}},
ManagementObjectID#name}}public String getNameType()
ManagedCommongetNameType in interface ManagedCommonManagementObject#type},
ManagementObjectID#type}public Set<ManagedOperation> getOperations()
ManagedCommongetOperations in interface ManagedCommonpublic Map<String,ManagedProperty> getProperties()
ManagedCommongetProperties in interface ManagedCommonpublic ManagedProperty getProperty(String name)
ManagedCommongetProperty in interface ManagedCommonname - the namepublic Set<String> getPropertyNames()
ManagedCommongetPropertyNames in interface ManagedCommonpublic Object getComponentName()
ManagedCommongetComponentName in interface ManagedCommonManagementRuntimeRef}public ManagedObject getParent()
ManagedObjectgetParent in interface ManagedCommongetParent in interface ManagedObjectpublic <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 attachmentCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.