public abstract class AdminObjectImpl extends Object implements AdminObject, Serializable
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
Constructor and Description |
---|
AdminObjectImpl() |
Modifier and Type | Method and Description |
---|---|
<T> T |
addAttchment(Class<T> type,
T attachment)
Add attachment
|
Object |
addAttchment(String key,
Object attachment) |
void |
addProperty(String key,
String value) |
<T> T |
getAttachment(Class<T> type)
Get attachment
|
Object |
getAttachment(String key) |
String |
getHostName() |
List<PropertyMetadata> |
getJAXBProperties() |
String |
getName()
Get the name for this AdminObject, usually the last component of the identifier.
|
Properties |
getProperties()
Get the Configuration Properties that defines this process
|
String |
getPropertyValue(String name)
Searches for the property with the specified key in this Admin Object.
|
String |
getServerGroup() |
String |
getServerName() |
<T> T |
removeAttachment(Class<T> type)
Remove attachment
|
Object |
removeAttachment(String key) |
void |
setHostName(String name) |
void |
setJAXBProperties(List<PropertyMetadata> props) |
void |
setName(String name) |
void |
setProperties(Properties props) |
void |
setServerGroup(String group) |
void |
setServerName(String name) |
public String getName()
AdminObject
getName
in interface AdminObject
public void setName(String name)
public String getServerGroup()
public String getServerName()
public String getHostName()
public void setServerGroup(String group)
public void setServerName(String name)
public void setHostName(String name)
public Properties getProperties()
AdminObject
getProperties
in interface AdminObject
public void setProperties(Properties props)
public List<PropertyMetadata> getJAXBProperties()
public void setJAXBProperties(List<PropertyMetadata> props)
public String getPropertyValue(String name)
AdminObject
null
.getPropertyValue
in interface AdminObject
name
- the property key.public <T> T addAttchment(Class<T> type, T attachment)
T
- the expected typeattachment
- the attachmenttype
- the typeIllegalArgumentException
- for a null name, attachment or typeUnsupportedOperationException
- when not supported by the implementationpublic <T> T removeAttachment(Class<T> type)
T
- the expected typetype
- the typeIllegalArgumentException
- for a null name or typepublic <T> T getAttachment(Class<T> type)
T
- the expected typetype
- the typeIllegalArgumentException
- for a null name or typeCopyright © 2012 JBoss by Red Hat. All Rights Reserved.