org.apache.sling.installer.core.impl.tasks
Class BundleTaskCreator
java.lang.Object
org.apache.sling.installer.core.impl.tasks.BundleTaskCreator
- All Implemented Interfaces:
- InstallTaskFactory, InternalService
public class BundleTaskCreator
- extends Object
- implements InternalService, InstallTaskFactory
Task creator for bundles
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTR_START
public static final String ATTR_START
- See Also:
- Constant Field Values
BundleTaskCreator
public BundleTaskCreator()
init
public void init(org.osgi.framework.BundleContext bc)
- Specified by:
init
in interface InternalService
- See Also:
InternalService.init(org.osgi.framework.BundleContext)
deactivate
public void deactivate()
- Specified by:
deactivate
in interface InternalService
- See Also:
InternalService.deactivate()
getDescription
public String getDescription()
- Specified by:
getDescription
in interface InternalService
- See Also:
InternalService.getDescription()
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
getStartLevel
public org.osgi.service.startlevel.StartLevel getStartLevel()
getPackageAdmin
public org.osgi.service.packageadmin.PackageAdmin getPackageAdmin()
createTask
public InstallTask createTask(TaskResourceGroup resourceList)
- Create a bundle task - install, update or remove
- Specified by:
createTask
in interface InstallTaskFactory
- See Also:
InstallTaskFactory.createTask(org.apache.sling.installer.api.tasks.TaskResourceGroup)
getBundleInfo
protected org.apache.sling.installer.core.impl.tasks.BundleTaskCreator.BundleInfo getBundleInfo(String symbolicName,
String version)
getMatchingBundle
public org.osgi.framework.Bundle getMatchingBundle(String bundleSymbolicName,
String version)
- Finds the bundle with given symbolic name in our bundle context.
isSnapshot
public boolean isSnapshot(org.osgi.framework.Version v)
- Check if the version is a snapshot version
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.