Class BundleTaskCreator

java.lang.Object
org.apache.sling.installer.core.impl.tasks.BundleTaskCreator
All Implemented Interfaces:
EventListener, InstallTaskFactory, org.apache.sling.installer.core.impl.InternalService, org.osgi.framework.BundleListener, org.osgi.framework.FrameworkListener

public class BundleTaskCreator extends Object implements org.apache.sling.installer.core.impl.InternalService, InstallTaskFactory, org.osgi.framework.FrameworkListener, org.osgi.framework.BundleListener
Task creator for bundles
  • Constructor Details

    • BundleTaskCreator

      public BundleTaskCreator()
  • Method Details

    • init

      public void init(org.osgi.framework.BundleContext bc, ResourceChangeListener listener, RetryHandler retryHandler)
      Specified by:
      init in interface org.apache.sling.installer.core.impl.InternalService
      See Also:
      • InternalService.init(org.osgi.framework.BundleContext, org.apache.sling.installer.api.ResourceChangeListener, RetryHandler)
    • deactivate

      public void deactivate()
      Specified by:
      deactivate in interface org.apache.sling.installer.core.impl.InternalService
      See Also:
      • InternalService.deactivate()
    • frameworkEvent

      public void frameworkEvent(org.osgi.framework.FrameworkEvent event)
      Specified by:
      frameworkEvent in interface org.osgi.framework.FrameworkListener
      See Also:
      • FrameworkListener.frameworkEvent(org.osgi.framework.FrameworkEvent)
    • bundleChanged

      public void bundleChanged(org.osgi.framework.BundleEvent event)
      Specified by:
      bundleChanged in interface org.osgi.framework.BundleListener
      See Also:
      • BundleListener.bundleChanged(org.osgi.framework.BundleEvent)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.apache.sling.installer.core.impl.InternalService
      See Also:
      • InternalService.getDescription()
    • createTask

      public InstallTask createTask(TaskResourceGroup resourceList)
      Create a bundle task - install, update or remove
      Specified by:
      createTask in interface InstallTaskFactory
      Parameters:
      resourceList - The group containing the resource to activate.
      Returns:
      An install task or null.
      See Also:
    • getBundleInfo

      protected BundleInfo getBundleInfo(String symbolicName, String version)