org.apache.felix.fileinstall.internal
Class ConfigInstaller

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

public class ConfigInstaller
extends java.lang.Object
implements ArtifactInstaller

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


Method Summary
 boolean canHandle(java.io.File artifact)
          Returns true if the listener can process the given artifact.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

canHandle

public boolean canHandle(java.io.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(java.io.File artifact)
             throws java.lang.Exception
Description copied from interface: ArtifactInstaller
Install the artifact

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

update

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

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

uninstall

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

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


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.