|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedObject
ManagedObject is an interface for a manageable element. It consists of: - a name/name type for a registry/references - an attachment name to associate the ManagedObject with a deployment attachment - annotations from the metadata making up the ManagedObject - the attachment instance - the ManagedPropertys for the interface - the ManagedOperations for the interface
| Method Summary | ||
|---|---|---|
Map<String,Annotation> |
getAnnotations()
Get the annotations associated with the managed object |
|
Object |
getAttachment()
Get the underlying object. |
|
ManagedObject |
getParent()
Get the parent ManagedObject |
|
|
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. |
|
| Methods inherited from interface org.jboss.managed.api.ManagedCommon |
|---|
getAttachmentName, getComponentName, getName, getNameType, getOperations, getProperties, getProperty, getPropertyNames |
| Method Detail |
|---|
Object getAttachment()
Map<String,Annotation> getAnnotations()
ManagedObject getParent()
getParent in interface ManagedCommonObject getTransientAttachment(String name)
name - the name
setTransientAttachment(String, Object)<T> T getTransientAttachment(Class<T> expectedType)
T - the expected typeexpectedType - the expected type
ClassCastException - when the object is not of the expected type
void setTransientAttachment(String name,
Object attachment)
name - the nameattachment - the attachment, pass null to remove an attachment
IllegalArgumentException - for a null name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||