Skip to content

Distribution of configuration properties from a file to OSGi bundles

License

Notifications You must be signed in to change notification settings

openmucextensions/configurator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Distribution of configuration properties from a file to OSGi bundles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages