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
-
Field Summary
Fields inherited from interface org.apache.sling.installer.api.tasks.InstallTaskFactory
NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bundleChanged
(org.osgi.framework.BundleEvent event) createTask
(TaskResourceGroup resourceList) Create a bundle task - install, update or removevoid
void
frameworkEvent
(org.osgi.framework.FrameworkEvent event) protected BundleInfo
getBundleInfo
(String symbolicName, String version) void
init
(org.osgi.framework.BundleContext bc, ResourceChangeListener listener, RetryHandler retryHandler)
-
Constructor Details
-
BundleTaskCreator
public BundleTaskCreator()
-
-
Method Details
-
init
public void init(org.osgi.framework.BundleContext bc, ResourceChangeListener listener, RetryHandler retryHandler) - Specified by:
init
in interfaceorg.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 interfaceorg.apache.sling.installer.core.impl.InternalService
- See Also:
-
InternalService.deactivate()
-
frameworkEvent
public void frameworkEvent(org.osgi.framework.FrameworkEvent event) - Specified by:
frameworkEvent
in interfaceorg.osgi.framework.FrameworkListener
- See Also:
-
FrameworkListener.frameworkEvent(org.osgi.framework.FrameworkEvent)
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
- See Also:
-
BundleListener.bundleChanged(org.osgi.framework.BundleEvent)
-
getDescription
- Specified by:
getDescription
in interfaceorg.apache.sling.installer.core.impl.InternalService
- See Also:
-
InternalService.getDescription()
-
createTask
Create a bundle task - install, update or remove- Specified by:
createTask
in interfaceInstallTaskFactory
- Parameters:
resourceList
- The group containing the resource to activate.- Returns:
- An install task or
null
. - See Also:
-
getBundleInfo
-