Class JSONConfigInstaller
java.lang.Object
org.forgerock.openidm.config.installer.JSONConfigInstaller
- All Implemented Interfaces:
org.apache.felix.fileinstall.ArtifactInstaller,org.apache.felix.fileinstall.ArtifactListener,org.osgi.service.cm.ConfigurationListener
public class JSONConfigInstaller
extends Object
implements org.apache.felix.fileinstall.ArtifactInstaller, org.osgi.service.cm.ConfigurationListener
ArtifactInstaller for JSON configurations. Based on ConfigInstaller.
TODO: This service lifecycle should be bound to the ConfigurationAdmin service lifecycle.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidconfigurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent) org.osgi.service.cm.ConfigurationAdminvoidLoad the specified configuration file as hashtable.static org.osgi.service.cm.ConfigurationAdminlookupConfigAdmin(org.osgi.framework.BundleContext context) voidstart(org.osgi.framework.BundleContext ctx) voidstop(org.osgi.framework.BundleContext ctx) voidvoid
-
Field Details
-
JSON_CONFIG_PROPERTY
- See Also:
-
SERVICE_FACTORY_PID_ALIAS
- See Also:
-
-
Constructor Details
-
JSONConfigInstaller
public JSONConfigInstaller()
-
-
Method Details
-
start
public void start(org.osgi.framework.BundleContext ctx) -
stop
public void stop(org.osgi.framework.BundleContext ctx) -
canHandle
- Specified by:
canHandlein interfaceorg.apache.felix.fileinstall.ArtifactListener
-
install
- Specified by:
installin interfaceorg.apache.felix.fileinstall.ArtifactInstaller- Throws:
Exception
-
update
- Specified by:
updatein interfaceorg.apache.felix.fileinstall.ArtifactInstaller- Throws:
Exception
-
uninstall
- Specified by:
uninstallin interfaceorg.apache.felix.fileinstall.ArtifactInstaller- Throws:
Exception
-
configurationEvent
public void configurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent) - Specified by:
configurationEventin interfaceorg.osgi.service.cm.ConfigurationListener
-
lookupConfigAdmin
public static org.osgi.service.cm.ConfigurationAdmin lookupConfigAdmin(org.osgi.framework.BundleContext context) -
getConfigurationAdmin
public org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin() -
loadConfigFile
Load the specified configuration file as hashtable. May also be called by other clients that want direct access to a given configuration file without going through the configuration admin service.- Parameters:
f-- Returns:
- Throws:
IOException
-