|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.jboss.util.property.PropertyMap (src)
org.jboss.util.property.PropertyContainer
Provides helper methods for working with instance or class properties.
Field Summary | |
protected java.lang.String |
groupname
The group name for this container. |
Fields inherited from class org.jboss.util.property.PropertyMap (src) |
boundListeners, EMPTY_ARRAY_PROPERTY, PROPERTY_NAME_SEPARATOR, unboundListeners |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
PropertyContainer(java.lang.Class type)
Initialize the container with a property group of the given class name. |
|
PropertyContainer(java.util.Properties props)
Initialize the container with a property group. |
|
PropertyContainer(java.lang.String groupname)
Initialize the container with a property group of the given name. |
Method Summary | |
protected void |
bindField(java.lang.String name)
Creates a FieldBoundPropertyListener (src) for the field and
property name and adds it the underlying property group. |
protected void |
bindField(java.lang.String name,
java.lang.String propertyName)
Creates a FieldBoundPropertyListener (src) for the field and
property name and adds it the underlying property group. |
protected void |
bindMethod(java.lang.String name)
Creates a MethodBoundPropertyListener (src) for the method and
property name and adds it the underlying property group. |
protected void |
bindMethod(java.lang.String name,
java.lang.String propertyName)
Creates a MethodBoundPropertyListener (src) for the method and
property name and adds it the underlying property group. |
protected void |
throwException(java.lang.String name)
|
protected void |
throwException(java.lang.String name,
java.lang.String msg)
|
protected void |
throwException(java.lang.String name,
java.lang.String msg,
java.lang.Throwable nested)
|
protected void |
throwException(java.lang.String name,
java.lang.Throwable nested)
|
Methods inherited from class org.jboss.util.property.PropertyMap (src) |
addPropertyListener, addPropertyListener, addPropertyListeners, containsProperty, entrySet, firePropertyAdded, firePropertyChanged, firePropertyRemoved, getArrayProperty, getArrayProperty, getProperty, getPropertyGroup, getPropertyGroup, keySet, load, load, load, load, makeIndexPropertyName, makePrefixedPropertyName, names, put, remove, removeProperty, removePropertyListener, removePropertyListener, setProperty |
Methods inherited from class java.util.Properties |
getProperty, list, list, load, propertyNames, save, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String groupname
Constructor Detail |
public PropertyContainer(java.util.Properties props)
public PropertyContainer(java.lang.String groupname)
groupname
- Property group name.public PropertyContainer(java.lang.Class type)
type
- The class whos name will be the property group name.Method Detail |
protected void bindField(java.lang.String name, java.lang.String propertyName)
FieldBoundPropertyListener
(src) for the field and
property name and adds it the underlying property group.
name
- The field name to bind values to.propertyName
- The property name to bind to.
java.lang.IllegalArgumentException
- Field of property name is null or
empty.protected void bindField(java.lang.String name)
FieldBoundPropertyListener
(src) for the field and
property name and adds it the underlying property group.
name
- The field name and property to bind values to.
java.lang.IllegalArgumentException
- Field of property name is null or
empty.protected void bindMethod(java.lang.String name, java.lang.String propertyName)
MethodBoundPropertyListener
(src) for the method and
property name and adds it the underlying property group.
name
- The method name to bind values to.propertyName
- The property name to bind to.
java.lang.IllegalArgumentException
- Method of property name is null or
empty.protected void bindMethod(java.lang.String name)
MethodBoundPropertyListener
(src) for the method and
property name and adds it the underlying property group.
name
- The method name and property to bind values to.
java.lang.IllegalArgumentException
- Method of property name is null or
empty.protected void throwException(java.lang.String name) throws PropertyException (src)
PropertyException (src)
protected void throwException(java.lang.String name, java.lang.String msg) throws PropertyException (src)
PropertyException (src)
protected void throwException(java.lang.String name, java.lang.String msg, java.lang.Throwable nested) throws PropertyException (src)
PropertyException (src)
protected void throwException(java.lang.String name, java.lang.Throwable nested) throws PropertyException (src)
PropertyException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |