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 TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent event) createTask(TaskResourceGroup resourceList) Create a bundle task - install, update or removevoidvoidframeworkEvent(org.osgi.framework.FrameworkEvent event) protected BundleInfogetBundleInfo(String symbolicName, String version) voidinit(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:
initin 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:
deactivatein interfaceorg.apache.sling.installer.core.impl.InternalService- See Also:
-
InternalService.deactivate()
-
frameworkEvent
public void frameworkEvent(org.osgi.framework.FrameworkEvent event) - Specified by:
frameworkEventin interfaceorg.osgi.framework.FrameworkListener- See Also:
-
FrameworkListener.frameworkEvent(org.osgi.framework.FrameworkEvent)
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener- See Also:
-
BundleListener.bundleChanged(org.osgi.framework.BundleEvent)
-
getDescription
- Specified by:
getDescriptionin interfaceorg.apache.sling.installer.core.impl.InternalService- See Also:
-
InternalService.getDescription()
-
createTask
Create a bundle task - install, update or remove- Specified by:
createTaskin interfaceInstallTaskFactory- Parameters:
resourceList- The group containing the resource to activate.- Returns:
- An install task or
null. - See Also:
-
getBundleInfo
-