public class ConfigInstaller extends java.lang.Object implements 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 |
doConfigurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent) |
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)
ArtifactListenercanHandle in interface ArtifactListenerartifact - the artifact to checktrue if this listener supports
the given artifact, false otherwisepublic void install(java.io.File artifact)
throws java.lang.Exception
ArtifactInstallerinstall in interface ArtifactInstallerartifact - the artifact to be installedjava.lang.Exceptionpublic void update(java.io.File artifact)
throws java.lang.Exception
ArtifactInstallerupdate in interface ArtifactInstallerartifact - the artifact to be updatedjava.lang.Exceptionpublic void uninstall(java.io.File artifact)
throws java.lang.Exception
ArtifactInstalleruninstall in interface ArtifactInstallerartifact - the artifact to be uninstalledjava.lang.Exceptionpublic void configurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent)
configurationEvent in interface org.osgi.service.cm.ConfigurationListenerpublic void doConfigurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent)
Copyright © 2006-2016 The Apache Software Foundation. All Rights Reserved.