/configurator

Distribution of configuration properties from a file to OSGi bundles

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

OpenMUC Configurator

Distribution of configuration properties from a file to OSGi bundles using the ConfigAdmin service. The component is licensed under GPLv3.

This component reads configuration properties from a file and distributes the artifacts using the OSGi ConfigurationAdmin service. The following code shows an example of a valid configuration file:

<configuration>
  <component name="org.example.component1">
    <property1>value1</property1>
    <property2>value2</property2>
  </component>
  <component name="org.example.component2">
    ...
  </component>
</configuration>

The example defines configuration properties for two OSGi components. The components must implement the ManagedService Interface defined in the OSGi compendium. The default filename for the configuration file is conf/configuration.xml, but can be changed by setting the system property org.openmuc.extensions.core.configurator.filename in the file conf/system.properties:

org.openmuc.extensions.core.configurator.filename=conf/myconfigfile.xml