Development Workflow for ConfigService
For important details, see Using ConfigService and Configuring Specific Properties in a Plug-in.
-
You can either create a file for your configuration properties or you can use the existing plugin.properties file. The file must have the .properties extension. Place the file in the directory of the plug-in in which you want to use ConfigService.
-
In the file, add the configuration properties that you want in the form of key=value pairs.
-
Add the com.sabre.edge.platform.core.config.properties extension to your plug-in. Add a new contributor element to this extension. In the file property of the contributor element, point to your configuration properties file.
-
Either add or update the Activator class in the plug-in by extending com.sabre.edge.platform.core.common.plugin.base.AbstractEdgeBasePlugin.
-
Obtain a reference to ConfigService both inside and outside the Activator class.
-
Obtain the configuration properties that are specific to the plug-in. Add the methods for your property value type to your Java code.