org.apache.felix.fileinstall.internal

Class ConfigInstaller

  • java.lang.Object
    • org.apache.felix.fileinstall.internal.ConfigInstaller
  • All Implemented Interfaces:
    ArtifactInstaller, ArtifactListener, org.osgi.service.cm.ConfigurationListener


    public class ConfigInstallerextends java.lang.Objectimplements ArtifactInstaller, org.osgi.service.cm.ConfigurationListener
    ArtifactInstaller for configurations. TODO: This service lifecycle should be bound to the ConfigurationAdmin service lifecycle.
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      booleancanHandle(java.io.File artifact)
      Returns true if the listener can process the given artifact.
      voidconfigurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent) 
      voiddestroy() 
      voidinit() 
      voidinstall(java.io.File artifact)
      Install the artifact
      voiduninstall(java.io.File artifact)
      Uninstall the artifact
      voidupdate(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

      • init

        public void init()
      • destroy

        public void destroy()
      • 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
      • configurationEvent

        public void configurationEvent(org.osgi.service.cm.ConfigurationEvent configurationEvent)
        Specified by:
        configurationEvent in interface org.osgi.service.cm.ConfigurationListener

Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14