Package org.pentaho.platform.web.http
Class ConfigurationAdminNonOsgiProxy
java.lang.Object
org.pentaho.platform.web.http.ConfigurationAdminNonOsgiProxy
This class serves as a away to gain access to OSGI ConfigurationAdmin capabilities,
more precisely to the configuration properties.
We used reflection, here to avoid the problem that arises in runtime
where the implementation returned by `PentahoSystem.get( ConfigurationAdmin.class )`
is the one present in the OSGI side (`org.apache.felix.cm.impl.ConfigurationAdminImpl`)
and not the one present in the legacy side (`org.osgi.service.cm.ConfigurationAdmin`),
which is the one we are actually importing and trying to use.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProperties
(String persistenceID) Wraps the call to `getProperties` method from the configuration related to the givenpersistenceID
.
-
Constructor Details
-
ConfigurationAdminNonOsgiProxy
public ConfigurationAdminNonOsgiProxy()
-
-
Method Details
-
getProperties
Wraps the call to `getProperties` method from the configuration related to the givenpersistenceID
.- Parameters:
persistenceID
- - configuration's file id.- Returns:
- the properties in the configuration file, or `null` if none is found.
-