Package org.apache.felix.cm.json.io
Interface ConfigurationWriter
-
@ProviderType public interface ConfigurationWriter
A configuration writer can write configuration resources as defined in OSGi Configurator specificiation. A writer can be obtained through aConfigurationWriter.Builder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConfigurationWriter.Builder
Builder to create a writer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeConfiguration(java.util.Dictionary<java.lang.String,java.lang.Object> properties)
Write a single configuration to the provided writer.void
writeConfigurationResource(ConfigurationResource resource)
Write a configuration resource to the provided writer.
-
-
-
Method Detail
-
writeConfiguration
void writeConfiguration(java.util.Dictionary<java.lang.String,java.lang.Object> properties) throws java.io.IOException
Write a single configuration to the provided writer. The writer/generator is not closed.- Parameters:
properties
- The configuration- Throws:
java.io.IOException
- If writing fails
-
writeConfigurationResource
void writeConfigurationResource(ConfigurationResource resource) throws java.io.IOException
Write a configuration resource to the provided writer. The writer/generator is not closed.- Parameters:
resource
- The configuration resource- Throws:
java.io.IOException
- If writing fails
-
-