Package net.officefloor.configuration
Interface WritableConfigurationContext
- All Superinterfaces:
ConfigurationContext
- All Known Implementing Classes:
AbstractWritableConfigurationContext,FileSystemConfigurationContext,MemoryConfigurationContext
Writable
ConfigurationContext.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.configuration.ConfigurationContext
DEFAULT_TAG_PREFIX, DEFAULT_TAG_SUFFIX, PROPERTY_CONFIGURATION_INPUT_CHARSET, PROPERTY_CONFIGURATION_INPUT_TAG_PREFIX, PROPERTY_CONFIGURATION_INPUT_TAG_SUFFIX, PROPERTY_CONFIGURATION_OUTPUT_CHARSET -
Method Summary
Modifier and TypeMethodDescriptioncreateConfigurationItem(String location, InputStream configuration) Creates a newWritableConfigurationItemat the relative location.voiddeleteConfigurationItem(String location) Deletes theWritableConfigurationItemat the relative location.getWritableConfigurationItem(String location) Obtains theWritableConfigurationItemat the location.Methods inherited from interface net.officefloor.configuration.ConfigurationContext
getConfigurationItem, getOptionalConfigurationItem
-
Method Details
-
getWritableConfigurationItem
Obtains theWritableConfigurationItemat the location.- Parameters:
location- Location of theWritableConfigurationItemto obtain.- Returns:
WritableConfigurationItem.- Throws:
IOException- If can not obtain aWritableConfigurationItemat the location.
-
createConfigurationItem
WritableConfigurationItem createConfigurationItem(String location, InputStream configuration) throws IOException Creates a newWritableConfigurationItemat the relative location.- Parameters:
location- Location of theWritableConfigurationItemto create.configuration- Configuration for theWritableConfigurationItem.- Returns:
- The created
WritableConfigurationItem. - Throws:
IOException- If fails to create theWritableConfigurationItem.
-
deleteConfigurationItem
Deletes theWritableConfigurationItemat the relative location.- Parameters:
location- Location of theWritableConfigurationItemto delete.- Throws:
IOException- If can not delete theWritableConfigurationItemat the relative location.
-