public class ConfigInstallerextends java.lang.Objectimplements ArtifactInstaller, org.osgi.service.cm.ConfigurationListener
Modifier and Type | Method and Description |
---|---|
boolean | canHandle(java.io.File artifact) Returns true if the listener can process the given artifact. |
void | configurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent) |
void | destroy() |
void | init() |
void | install(java.io.File artifact) Install the artifact |
void | uninstall(java.io.File artifact) Uninstall the artifact |
void | update(java.io.File artifact) Update the artifact |
public void init()
public void destroy()
public boolean canHandle(java.io.File artifact)
ArtifactListener
canHandle
in interface ArtifactListener
artifact
- the artifact to checktrue
if this listener supports the given artifact, false
otherwisepublic void install(java.io.File artifact) throws java.lang.Exception
ArtifactInstaller
install
in interface ArtifactInstaller
artifact
- the artifact to be installedjava.lang.Exception
public void update(java.io.File artifact) throws java.lang.Exception
ArtifactInstaller
update
in interface ArtifactInstaller
artifact
- the artifact to be updatedjava.lang.Exception
public void uninstall(java.io.File artifact) throws java.lang.Exception
ArtifactInstaller
uninstall
in interface ArtifactInstaller
artifact
- the artifact to be uninstalledjava.lang.Exception
public void configurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent)
configurationEvent
in interface org.osgi.service.cm.ConfigurationListener
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.