public class ConfigInstaller extends Object implements ArtifactInstaller, org.osgi.service.cm.ConfigurationListener
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(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(File artifact)
Install the artifact
|
void |
uninstall(File artifact)
Uninstall the artifact
|
void |
update(File artifact)
Update the artifact
|
public void init()
public void destroy()
public boolean canHandle(File artifact)
ArtifactListener
canHandle
in interface ArtifactListener
artifact
- the artifact to checktrue
if this listener supports
the given artifact, false
otherwisepublic void install(File artifact) throws Exception
ArtifactInstaller
install
in interface ArtifactInstaller
artifact
- the artifact to be installedException
public void update(File artifact) throws Exception
ArtifactInstaller
update
in interface ArtifactInstaller
artifact
- the artifact to be updatedException
public void uninstall(File artifact) throws Exception
ArtifactInstaller
uninstall
in interface ArtifactInstaller
artifact
- the artifact to be uninstalledException
public void configurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent)
configurationEvent
in interface org.osgi.service.cm.ConfigurationListener
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.