| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
MBean interface.
| Field Summary | |
| static javax.management.ObjectName | OBJECT_NAME | 
| Fields inherited from interface org.jboss.system.ServiceMBean | 
| CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED | 
| Method Summary | |
|  void | addListener(org.jboss.util.property.PropertyListener listener)Add a property listener. | 
|  void | addListener(String typename)Construct and add a property listener. | 
|  void | addListeners(org.jboss.util.property.PropertyListener[] listeners)Add an array of property listeners. | 
|  boolean | exists(String name)Check if a system property of the given name exists. | 
|  String | get(String name)Get a system property. | 
|  String | get(String name,
    String defaultValue)Get a system property. | 
|  List | getArray(String name)Get an array style system property. | 
|  List | getArray(String base,
         List defaultValues)Get an array style system property. | 
|  org.jboss.util.property.PropertyGroup | getGroup(String basename)Get a property group for under the given system property base. | 
|  org.jboss.util.property.PropertyGroup | getGroup(String basename,
         int index)Get a property group for under the given system property base at the given index. | 
|  void | load(String url)Load some system properties from the given URL. | 
|  void | load(URL url)Load some system properties from the given URL. | 
|  String | remove(String name)Remove a system property. | 
|  boolean | removeListener(org.jboss.util.property.PropertyListener listener)Remove a property listener. | 
|  String | set(String name,
    String value)Set a system property. | 
|  void | setProperties(Properties props)Set system properties by merging the given properties object. | 
|  void | setURLList(String list)Load system properties for each of the given comma separated urls. | 
|  Map | showAll()Return a Map of System.getProperties() with a toString implementation that provides an html table of the key/value pairs. | 
|  Map | showGroup(String basename)Return a Map of the property group for under the given system property base with a toString implementation that provides an html table of the key/value pairs. | 
| Methods inherited from interface org.jboss.system.ServiceMBean | 
| getName, getState, getStateString, jbossInternalLifecycle | 
| Methods inherited from interface org.jboss.system.Service | 
| create, destroy, start, stop | 
| Field Detail | 
public static final javax.management.ObjectName OBJECT_NAME
| Method Detail | 
public String set(String name, String value)
name - The name of the property to set.value - The value of the property.
public String get(String name, String defaultValue)
name - Property namedefaultValue - Default property value
public String get(String name)
name - Property name
public String remove(String name)
name - The name of the property to remove.
public List getArray(String base, List defaultValues)
base - Base property namedefaultValues - Default property values
public List getArray(String name)
name - Property name
public boolean exists(String name)
name - Property name
public org.jboss.util.property.PropertyGroup getGroup(String basename)
basename - Base property name
public org.jboss.util.property.PropertyGroup getGroup(String basename, int index)
basename - Base property nameindex - Array property index
public void addListener(org.jboss.util.property.PropertyListener listener)
listener - Property listener to addpublic void addListeners(org.jboss.util.property.PropertyListener[] listeners)
listeners - Array of property listeners to addpublic boolean removeListener(org.jboss.util.property.PropertyListener listener)
listener - Property listener to remove
public void load(URL url) throws IOException
url - The url to load properties from.
IOExceptionpublic void load(String url) throws IOException, MalformedURLException
url - The url to load properties from.
IOException
MalformedURLExceptionpublic void addListener(String typename) throws ClassNotFoundException, IllegalAccessException, InstantiationException
public void setURLList(String list) throws MalformedURLException, IOException
list - A list of comma separated urls.
MalformedURLException
IOExceptionpublic void setProperties(Properties props) throws IOException
props - Properties object to merge.
IOExceptionpublic Map showAll()
public Map showGroup(String basename)
basename - Base property name
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||