|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implmentations of this interface will provide persistance mechanisms
for Configuration
objects.
Method Summary | |
void |
alterChildConfiguration(Configuration parentConfig,
String childName,
Configuration newConfig)
Alters the configuration named by childName within parentConfig, setting it to the value of newConfig. |
Configuration |
getChildConfiguration(Configuration parentConfig,
String childName)
Gets the child Configuration object of parentConfig
that is named by the childName . |
Set |
getChildConfigurationNames(Configuration parentConfig)
Gets the names of all the child configurations of parentConfig. |
Configuration |
newConfiguration(Class configurationClass)
Creates a new configuration object of the type specified. |
Configuration |
readConfigurationStream(String name,
InputStream in)
Loads a Configuration object from the given
InputStream . |
void |
writeConfigurationStream(Configuration configuration,
OutputStream out)
Stores the raw version of the provided Configuration
object in the format that this format service implementation
understands. |
Method Detail |
public Configuration newConfiguration(Class configurationClass)
Creates a new configuration object of the type specified.
configurationClass
- type of the configuration object to build
public Configuration readConfigurationStream(String name, InputStream in) throws ConfigurationFormatException
Loads a Configuration
object from the given
InputStream
. This Configuration object will represent
the full object-graph depiction of a live configuration.
name
- The name of the configuration nodein
- the InputStream
from which
the configuration will be read
ConfigurationFormatException
- when there is a formatting error
with the input streampublic void writeConfigurationStream(Configuration configuration, OutputStream out) throws ConfigurationFormatException
Stores the raw version of the provided Configuration
object in the format that this format service implementation
understands.
out
- The output stream to which the raw configuration
data should be writtenconfiguration
- The Configuration object to be stored; may be any
subclass of Configuration
ConfigurationFormatException
- When unable to write a
configuration's raw format to the output streampublic Configuration getChildConfiguration(Configuration parentConfig, String childName)
parentConfig
that is named by the childName
. childName
may
be an indexed (see constructIndexedName).
Returns null if it does not exist.
parentConfig
- parent of requested child configurationchildName
- child configuration name
public Set getChildConfigurationNames(Configuration parentConfig)
parentConfig
- parent of requested child configuration names
public void alterChildConfiguration(Configuration parentConfig, String childName, Configuration newConfig)
parentConfig
- the parent containing childNamechildName
- the child to be alterednewConfig
- the new value for the child config
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |