org.apache.felix.fileinstall.internal
Class ConfigInstaller

java.lang.Object
  extended by org.apache.felix.fileinstall.internal.ConfigInstaller
All Implemented Interfaces:
ArtifactInstaller, ArtifactListener, ConfigurationListener

public class ConfigInstaller
extends Object
implements ArtifactInstaller, ConfigurationListener

ArtifactInstaller for configurations. TODO: This service lifecycle should be bound to the ConfigurationAdmin service lifecycle.


Method Summary
 boolean canHandle(File artifact)
          Returns true if the listener can process the given artifact.
 void configurationEvent(ConfigurationEvent configurationEvent)
          Receives notification of a Configuration that has changed.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init()

destroy

public void destroy()

canHandle

public boolean canHandle(File artifact)
Description copied from interface: ArtifactListener
Returns true if the listener can process the given artifact. Error occuring when checking the artifact should be catched and not be thrown.

Specified by:
canHandle in interface ArtifactListener
Parameters:
artifact - the artifact to check
Returns:
true if this listener supports the given artifact, false otherwise

install

public void install(File artifact)
             throws Exception
Description copied from interface: ArtifactInstaller
Install the artifact

Specified by:
install in interface ArtifactInstaller
Parameters:
artifact - the artifact to be installed
Throws:
Exception

update

public void update(File artifact)
            throws Exception
Description copied from interface: ArtifactInstaller
Update the artifact

Specified by:
update in interface ArtifactInstaller
Parameters:
artifact - the artifact to be updated
Throws:
Exception

uninstall

public void uninstall(File artifact)
               throws Exception
Description copied from interface: ArtifactInstaller
Uninstall the artifact

Specified by:
uninstall in interface ArtifactInstaller
Parameters:
artifact - the artifact to be uninstalled
Throws:
Exception

configurationEvent

public void configurationEvent(ConfigurationEvent configurationEvent)
Description copied from interface: ConfigurationListener
Receives notification of a Configuration that has changed.

Specified by:
configurationEvent in interface ConfigurationListener
Parameters:
configurationEvent - The ConfigurationEvent.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.