|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SystemPropertiesServiceMBean
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 |
---|
static final javax.management.ObjectName OBJECT_NAME
Method Detail |
---|
String set(String name, String value)
name
- The name of the property to set.value
- The value of the property.
String get(String name, String defaultValue)
name
- Property namedefaultValue
- Default property value
String get(String name)
name
- Property name
String remove(String name)
name
- The name of the property to remove.
List getArray(String base, List defaultValues)
base
- Base property namedefaultValues
- Default property values
List getArray(String name)
name
- Property name
boolean exists(String name)
name
- Property name
org.jboss.util.property.PropertyGroup getGroup(String basename)
basename
- Base property name
org.jboss.util.property.PropertyGroup getGroup(String basename, int index)
basename
- Base property nameindex
- Array property index
void addListener(org.jboss.util.property.PropertyListener listener)
listener
- Property listener to addvoid addListeners(org.jboss.util.property.PropertyListener[] listeners)
listeners
- Array of property listeners to addboolean removeListener(org.jboss.util.property.PropertyListener listener)
listener
- Property listener to remove
void load(URL url) throws IOException
url
- The url to load properties from.
IOException
void load(String url) throws IOException, MalformedURLException
url
- The url to load properties from.
IOException
MalformedURLException
void addListener(String typename) throws ClassNotFoundException, IllegalAccessException, InstantiationException
type
- The type of property listener to add.
ClassNotFoundException
IllegalAccessException
InstantiationException
void setURLList(String list) throws MalformedURLException, IOException
list
- A list of comma separated urls.
MalformedURLException
IOException
void setProperties(Properties props) throws IOException
props
- Properties object to merge.
IOException
Map showAll()
Map showGroup(String basename)
basename
- Base property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |