public interface PropertyIfc
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENVIRONMENT
Value of
type for Environment subset of properties |
static java.lang.String |
RUNTIME
Value of
type for Runtime subset of properties |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(java.lang.String type,
java.lang.String key)
Retrieve the property value for the specified type and key.
|
java.lang.String[] |
getPropertyKeys(java.lang.String type)
Retrieve a list of 'property keys' for the given type subset.
|
java.lang.String[] |
getPropertyTypes()
Retrieve a list of 'property type' subsets.
|
void |
setProperty(java.lang.String type,
java.lang.String key,
java.lang.String value)
Set the property value for the specified type and key.
|
static final java.lang.String ENVIRONMENT
type
for Environment subset of propertiesstatic final java.lang.String RUNTIME
type
for Runtime subset of propertiesjava.lang.String getProperty(java.lang.String type, java.lang.String key)
type
- A String indicating the subset to which the
property belongs (i.e. environment, runtime, etc.)key
- A String indicating the specific property to
be retrievednull
if the property has not been setjava.lang.String[] getPropertyTypes()
java.lang.String[] getPropertyKeys(java.lang.String type)
void setProperty(java.lang.String type, java.lang.String key, java.lang.String value) throws java.lang.IllegalArgumentException
type
- A String indicating the subset the property to
which the property belongs (i.e. environment,
runtime, etc.)key
- A String indicating the specific property to
be setvalue
- The value of the property to be set. A
null
value will cause the current property
to be unset.java.lang.IllegalArgumentException
- if type or key is null