Package org.apache.felix.cm.json.io
Interface ConfigurationReader
-
@ProviderType public interface ConfigurationReaderA configuration reader can read configuration resources as defined in OSGi Configurator specificiation. A reader can be obtained through aConfigurationReader.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceConfigurationReader.BinaryHandlerHandler for binary propertiesstatic interfaceConfigurationReader.BuilderBuilder to create a reader.static interfaceConfigurationReader.ConfiguratorPropertyHandlerHandler for configurator properties
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getIgnoredErrors()After reading a configuration (resource) this method will return a list of ignored errors.Hashtable<String,Object>readConfiguration()Read a single configuration from the provided reader.ConfigurationResourcereadConfigurationResource()Read a configuration resource from the provided reader.
-
-
-
Method Detail
-
readConfiguration
Hashtable<String,Object> readConfiguration() throws IOException
Read a single configuration from the provided reader. The reader is not closed.getIgnoredErrors()can be used after reading if any ignored errors occurred during processing the configuration.- Returns:
- The read configuration.
- Throws:
IOException- If reading fails
-
readConfigurationResource
ConfigurationResource readConfigurationResource() throws IOException
Read a configuration resource from the provided reader. The reader is not closed.getIgnoredErrors()can be used after reading if any ignored errors occurred during processing the resource.- Returns:
- The read configurations.
- Throws:
IOException- If reading fails
-
-