Package net.officefloor.configuration
Interface WritableConfigurationContext
-
- All Superinterfaces:
ConfigurationContext
- All Known Implementing Classes:
AbstractWritableConfigurationContext,FileSystemConfigurationContext,MemoryConfigurationContext,ProjectConfigurationContext
public interface WritableConfigurationContext extends ConfigurationContext
WritableConfigurationContext.- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WritableConfigurationItemcreateConfigurationItem(java.lang.String location, java.io.InputStream configuration)Creates a newWritableConfigurationItemat the relative location.voiddeleteConfigurationItem(java.lang.String location)Deletes theWritableConfigurationItemat the relative location.WritableConfigurationItemgetWritableConfigurationItem(java.lang.String location)Obtains theWritableConfigurationItemat the location.-
Methods inherited from interface net.officefloor.configuration.ConfigurationContext
getConfigurationItem, getOptionalConfigurationItem
-
-
-
-
Method Detail
-
getWritableConfigurationItem
WritableConfigurationItem getWritableConfigurationItem(java.lang.String location) throws java.io.IOException
Obtains theWritableConfigurationItemat the location.- Parameters:
location- Location of theWritableConfigurationItemto obtain.- Returns:
WritableConfigurationItem.- Throws:
java.io.IOException- If can not obtain aWritableConfigurationItemat the location.
-
createConfigurationItem
WritableConfigurationItem createConfigurationItem(java.lang.String location, java.io.InputStream configuration) throws java.io.IOException
Creates a newWritableConfigurationItemat the relative location.- Parameters:
location- Location of theWritableConfigurationItemto create.configuration- Configuration for theWritableConfigurationItem.- Returns:
- The created
WritableConfigurationItem. - Throws:
java.io.IOException- If fails to create theWritableConfigurationItem.
-
deleteConfigurationItem
void deleteConfigurationItem(java.lang.String location) throws java.io.IOExceptionDeletes theWritableConfigurationItemat the relative location.- Parameters:
location- Location of theWritableConfigurationItemto delete.- Throws:
java.io.IOException- If can not delete theWritableConfigurationItemat the relative location.
-
-