Package org.apache.felix.cm.json.io
Interface ConfigurationWriter
-
@ProviderType public interface ConfigurationWriterA 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 interfaceConfigurationWriter.BuilderBuilder to create a writer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwriteConfiguration(java.util.Dictionary<java.lang.String,java.lang.Object> properties)Write a single configuration to the provided writer.voidwriteConfigurationResource(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.IOExceptionWrite 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
-
-