All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.ServiceConfiguration
java.lang.Object
|
+----java.util.Observable
|
+----sun.server.ServiceConfiguration
- public class ServiceConfiguration
- extends Observable
- implements FilenameFilter
Service configuration class holding all properties for a service.
-
DEFAULT_PROPS
-
-
SUFFIX
-
-
ServiceConfiguration(File)
- Create a service configuration which holds all properties for a
particular service.
-
ServiceConfiguration(File[])
- Create a service configuration which holds all properties for a
particular service.
-
accept(File, String)
- Implement file filtering to get just .properties files.
-
getGroupProperties(String)
-
Get all the properties in a property group.
-
getGroupProperty(String, String)
- Get a property from a particular property group.
-
getMatchingProperties(String)
- Get a property set having property names starting with a prefix.
-
getProperties()
-
Get all the properties in the global list.
-
getProperty(String)
- Get a property from the global list.
-
replaceGroupProperties(String, ExProperties)
- Replace a complete property group.
-
setGroupProperties(String, ExProperties)
- Set a group of properties in a property group.
-
setGroupProperty(String, String, String)
- Set a property in a property group.
-
setProperties(ExProperties)
- Set a group of properties in the global list.
-
setProperty(String, String)
- Set a property in the global list.
-
toString()
- Convert to a string.
DEFAULT_PROPS
public static final String DEFAULT_PROPS
SUFFIX
public static final String SUFFIX
ServiceConfiguration
public ServiceConfiguration(File configDir)
- Create a service configuration which holds all properties for a
particular service.
ServiceConfiguration
public ServiceConfiguration(File configDirs[])
- Create a service configuration which holds all properties for a
particular service.
getProperty
public String getProperty(String propName)
- Get a property from the global list.
getProperties
public ExProperties getProperties()
- Get all the properties in the global list.
getMatchingProperties
public ExProperties getMatchingProperties(String propNamePrefix)
- Get a property set having property names starting with a prefix.
setProperty
public void setProperty(String propName,
String newValue) throws IOException
- Set a property in the global list.
Notifies observers of the change.
setProperties
public void setProperties(ExProperties changedProps) throws IllegalArgumentException, IOException
- Set a group of properties in the global list.
Notifies observers of the change.
getGroupProperty
public String getGroupProperty(String propGroup,
String propName)
- Get a property from a particular property group.
getGroupProperties
public ExProperties getGroupProperties(String propGroup) throws IllegalArgumentException
- Get all the properties in a property group.
setGroupProperty
public void setGroupProperty(String propGroup,
String propName,
String newValue) throws IOException
- Set a property in a property group.
Notifies observers of the change.
setGroupProperties
public void setGroupProperties(String propGroup,
ExProperties changedProps) throws IllegalArgumentException, IOException
- Set a group of properties in a property group. Adds new properties
or replaces existing ones, but does not remove anything.
Notifies observers of the change.
replaceGroupProperties
public void replaceGroupProperties(String propGroup,
ExProperties props) throws IllegalArgumentException, IOException
- Replace a complete property group.
Notifies observers of the change.
accept
public boolean accept(File dir,
String name)
- Implement file filtering to get just .properties files.
toString
public String toString()
- Convert to a string.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index