|
||||||||||
| PREV CLASS NEXT CLASS (src) | 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 (src) | Field Summary | |
protected java.util.Map |
properties
Configuration properties. |
| Constructor Summary | |
AbstractBuilder()
Default constructor. |
|
AbstractBuilder(java.util.Map properties)
|
|
| Method Summary | |
abstract MBeanInfo (src) |
build()
Constructs the Model MBean metadata. |
boolean |
getBooleanProperty(java.lang.String key)
Returns true for Boolean(true) and strings "true" and "T" (case insensitive). |
protected java.util.Map |
getProperties()
Returns the property map of this builder instance. |
java.lang.Object |
getProperty(java.lang.String key)
Returns the value of a given configuration property. |
java.lang.String |
getStringProperty(java.lang.String key)
Returns a string property or null if key does not exist. |
protected void |
setProperties(java.util.Map properties)
Sets a copy of a properties map to this builder instance. |
void |
setProperty(java.lang.String key,
java.lang.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 java.util.Map properties
| Constructor Detail |
public AbstractBuilder()
public AbstractBuilder(java.util.Map properties)
| Method Detail |
public boolean getBooleanProperty(java.lang.String key)
throws IllegalPropertyException (src)
key - to lookup
IllegalPropertyException (src) - if property value is not either
Boolean or String type or they key value is
null or a string contained an unknown valuepublic java.lang.String getStringProperty(java.lang.String key)
public void setProperty(java.lang.String key,
java.lang.Object value)
setProperty in interface MetaDataBuilder (src) key - unique string key for a propertyvalue - property valuepublic java.lang.Object getProperty(java.lang.String key)
getProperty in interface MetaDataBuilder (src) key - property key string
public abstract MBeanInfo (src) build()
throws NotCompliantMBeanException (src)
MetaDataBuilder (src)
build in interface MetaDataBuilder (src) NotCompliantMBeanException (src) - if there were errors building the
MBean info from the given data sourceprotected void setProperties(java.util.Map properties)
properties - configuration propertiesprotected java.util.Map getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||