public interface ManagedObject extends ManagedCommon
ManagedPropertys for the entity
- the ManagedOperations for the entity
NOTE: Clients should not use this class - it is intended for server-side use only.| Modifier and Type | Method and Description |
|---|---|
Map<String,Annotation> |
getAnnotations()
Get the annotations associated with the managed object
|
Object |
getAttachment()
Get the underlying object.
|
ManagedObject |
getParent()
Get the parent ManagedObject
|
<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.
|
getAttachmentName, getComponentName, getName, getNameType, getOperations, getProperties, getProperty, getPropertyNamesObject getAttachment()
Map<String,Annotation> getAnnotations()
ManagedObject getParent()
getParent in interface ManagedCommonObject getTransientAttachment(String name)
name - the namesetTransientAttachment(String, Object)<T> T getTransientAttachment(Class<T> expectedType)
T - the expected typeexpectedType - the expected typeClassCastException - when the object is not of the expected typevoid setTransientAttachment(String name, Object attachment)
name - the nameattachment - the attachment, pass null to remove an attachmentIllegalArgumentException - for a null nameCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.