|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.managed.plugins.ManagedObjectImpl
public class ManagedObjectImpl
ManagedObjectImpl.
| 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)
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 |
|
| Method Summary | ||
|---|---|---|
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 |
|
|
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 |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedObjectImpl(String name)
name - - The object name used for ManagementRef resolution
public ManagedObjectImpl(String name,
Set<ManagedProperty> properties)
name - - The object name used for ManagementRef resolutionproperties - the properties
public 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)
| Method Detail |
|---|
public String getName()
ManagedCommon
getName in interface ManagedCommonManagementObject#name}},
ManagementObjectID#name}}public void setName(String name)
MutableManagedObject
setName in interface MutableManagedObjectManagementObject#name}},
ManagementObjectID#name}}public String getNameType()
ManagedCommon
getNameType in interface ManagedCommonManagementObject#type},
ManagementObjectID#type}public void setNameType(String nameType)
public String getAttachmentName()
ManagedCommon
getAttachmentName 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()
ManagedCommon
getPropertyNames in interface ManagedCommonpublic ManagedProperty getProperty(String name)
ManagedCommon
getProperty in interface ManagedCommonname - the name
public Map<String,ManagedProperty> getProperties()
ManagedCommon
getProperties in interface ManagedCommonpublic void setProperties(Map<String,ManagedProperty> properties)
MutableManagedObject
setProperties in interface MutableManagedObjectproperties - - the ManagedProperty mapping.public Object getAttachment()
ManagedObject
getAttachment 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)
MutableManagedObject
setOperations in interface MutableManagedObjectoperations - - the ManagedOperations for the ManagedObject.public ManagedObject getParent()
ManagedObject
getParent in interface ManagedCommongetParent in interface ManagedObjectpublic void setParent(ManagedObject parent)
MutableManagedObject
setParent in interface MutableManagedObjectparent - - the parent ManagedObject, null if no parent exists.public Object getComponentName()
ManagedCommon
getComponentName in interface ManagedCommonManagementRuntimeRef}public void setComponentName(Object name)
MutableManagedObject
setComponentName in interface MutableManagedObjectManagementRuntimeRef}public <T> T getTransientAttachment(Class<T> expectedType)
ManagedObject
getTransientAttachment in interface ManagedObjectT - the expected typeexpectedType - the expected type
public Object getTransientAttachment(String name)
ManagedObject
getTransientAttachment in interface ManagedObjectname - the name
ManagedObject.setTransientAttachment(String, Object)
public void setTransientAttachment(String name,
Object attachment)
ManagedObject
setTransientAttachment in interface ManagedObjectname - the nameattachment - the attachment, pass null to remove an attachmentpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectprotected void toString(StringBuilder sb)
sb - the buffer to append the name and props to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||