public abstract class AdminObjectImpl extends Object implements AdminObject, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,Object> |
attachments |
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
|
void |
addProperty(String key,
String value) |
<T> T |
getAttachment(Class<T> type)
Get attachment
|
String |
getHostName() |
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
|
Map<String,String> |
getPropertiesMap() |
String |
getPropertyValue(String key)
Searches for the property with the specified key in this Admin Object.
|
String |
getServerGroup() |
String |
getServerName() |
<T> T |
removeAttachment(Class<T> type)
Remove attachment
|
void |
setHostName(String name) |
void |
setName(String name) |
void |
setProperties(Properties props) |
void |
setServerGroup(String group) |
void |
setServerName(String name) |
public String getName()
AdminObjectgetName in interface AdminObjectpublic 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()
AdminObjectgetProperties in interface AdminObjectpublic void setProperties(Properties props)
public String getPropertyValue(String key)
AdminObjectnull.getPropertyValue in interface AdminObjectkey - 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 © 2017 JBoss by Red Hat. All rights reserved.