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 WritableConfigurationItem
createConfigurationItem(java.lang.String location, java.io.InputStream configuration)
Creates a newWritableConfigurationItem
at the relative location.void
deleteConfigurationItem(java.lang.String location)
Deletes theWritableConfigurationItem
at the relative location.WritableConfigurationItem
getWritableConfigurationItem(java.lang.String location)
Obtains theWritableConfigurationItem
at 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 theWritableConfigurationItem
at the location.- Parameters:
location
- Location of theWritableConfigurationItem
to obtain.- Returns:
WritableConfigurationItem
.- Throws:
java.io.IOException
- If can not obtain aWritableConfigurationItem
at the location.
-
createConfigurationItem
WritableConfigurationItem createConfigurationItem(java.lang.String location, java.io.InputStream configuration) throws java.io.IOException
Creates a newWritableConfigurationItem
at the relative location.- Parameters:
location
- Location of theWritableConfigurationItem
to 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.IOException
Deletes theWritableConfigurationItem
at the relative location.- Parameters:
location
- Location of theWritableConfigurationItem
to delete.- Throws:
java.io.IOException
- If can not delete theWritableConfigurationItem
at the relative location.
-
-