|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.metadata.AbstractBuilder
Abstract helper class for builder implementations. Includes accessors for property values that can deal with either string values or equivalent object types (such as string "true" or Boolean(true)).
MetaDataBuilder| Field Summary | |
protected Map |
properties
Configuration properties. |
| Constructor Summary | |
AbstractBuilder()
Default constructor. |
|
AbstractBuilder(Map properties)
|
|
| Method Summary | |
abstract MBeanInfo |
build()
Constructs the Model MBean metadata. |
boolean |
getBooleanProperty(String key)
Returns true for Boolean(true) and strings "true" and "T" (case insensitive). |
protected Map |
getProperties()
Returns the property map of this builder instance. |
Object |
getProperty(String key)
Returns the value of a given configuration property. |
String |
getStringProperty(String key)
Returns a string property or null if key does not exist. |
protected void |
setProperties(Map properties)
Sets a copy of a properties map to this builder instance. |
void |
setProperty(String key,
Object value)
Sets a builder configuration property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Map properties
| Constructor Detail |
public AbstractBuilder()
public AbstractBuilder(Map properties)
| Method Detail |
public boolean getBooleanProperty(String key) throws IllegalPropertyException
key - to lookup
IllegalPropertyException - if property value is not either
Boolean or String type or they key value is
null or a string contained an unknown valuepublic String getStringProperty(String key)
public void setProperty(String key, Object value)
setProperty in interface MetaDataBuilderkey - unique string key for a propertyvalue - property valuepublic Object getProperty(String key)
getProperty in interface MetaDataBuilderkey - property key string
public abstract MBeanInfo build() throws NotCompliantMBeanException
MetaDataBuilder
build in interface MetaDataBuilderNotCompliantMBeanException - if there were errors building the
MBean info from the given data sourceprotected void setProperties(Map properties)
properties - configuration propertiesprotected Map getProperties()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||