public interface ConfigurationContext
ConfigurationItem
instances.Modifier and Type | Method and Description |
---|---|
ConfigurationItem |
createConfigurationItem(String relativeLocation,
InputStream configuration)
Creates a new
ConfigurationItem at the relative location. |
void |
deleteConfigurationItem(String relativeLocation)
Deletes the
ConfigurationItem at the relative location. |
ConfigurationItem |
getConfigurationItem(String relativeLocation)
Obtains the
ConfigurationItem at the relative location. |
String |
getLocation()
Obtains the location for this
ConfigurationContext . |
boolean |
isReadOnly()
Indicates if the configuration is read-only.
|
String getLocation()
Obtains the location for this ConfigurationContext
.
This value is used in the equality of ConfigurationContext
instances.
ConfigurationContext
.ConfigurationItem getConfigurationItem(String relativeLocation) throws Exception
ConfigurationItem
at the relative location.relativeLocation
- Relative location of the ConfigurationItem
to obtain.ConfigurationItem
.Exception
- If can not obtain a ConfigurationItem
at the relative
location.boolean isReadOnly()
true
should the configuration be read-only.ConfigurationItem createConfigurationItem(String relativeLocation, InputStream configuration) throws Exception, ReadOnlyConfigurationException
ConfigurationItem
at the relative location.relativeLocation
- Relative location of the ConfigurationItem
to create.configuration
- Configuration for the ConfigurationItem
.ConfigurationItem
.Exception
- If fails to create the ConfigurationItem
.ReadOnlyConfigurationException
- Should the underlying implementation be read-only.void deleteConfigurationItem(String relativeLocation) throws Exception, ReadOnlyConfigurationException
ConfigurationItem
at the relative location.relativeLocation
- Relative location of the ConfigurationItem
to delete.Exception
- If can not delete the ConfigurationItem
at the
relative location.ReadOnlyConfigurationException
- Should the underlying implementation be read-only.Copyright © 2005–2016. All rights reserved.