Package org.pentaho.platform.web.http
Class ConfigurationAdminNonOsgiProxy
- java.lang.Object
-
- org.pentaho.platform.web.http.ConfigurationAdminNonOsgiProxy
-
public class ConfigurationAdminNonOsgiProxy extends Object
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
Constructors Constructor Description ConfigurationAdminNonOsgiProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dictionary<String,Object>
getProperties(String persistenceID)
Wraps the call to `getProperties` method from the configuration related to the givenpersistenceID
.
-
-
-
Method Detail
-
getProperties
public Dictionary<String,Object> getProperties(String persistenceID)
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.
-
-