!--a11y-->
Sharing Configuration Between
ApplicationsIf the Root-Plug-in name is not the same as the application name, then the ConfigRootFolder has to match the Root-Plugin. This is the mechanism used to have different Portal applications sharing the same configuration.
Using the Config framework API
· Get the Configuration service:
IConfigurationService service = Configuration.getInstance(); |
· Get the Config Manager
IConfigManager manager = service.getConfigManager(IConfigClientContext.createContext()); |
· Get the Config Plugin .The path /com.sap.portal.prt.config.prototype matches the Root-Plugin name.
IConfigPlugin plugin = manager.getConfigPlugin("/com.sap.portal.prt.config.prototype"); |
· Get the Configurable
IConfigurable configurable = plugin.getConfigurable("hello_text"); |
· Get the Property Value
String text = configurable.getPropertyValue("value"); |
