org.apache.sling.installer.core.impl.tasks
Class BundleTaskCreator

java.lang.Object
  extended by 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


Field Summary
static String ATTR_START
           
 
Constructor Summary
BundleTaskCreator()
           
 
Method Summary
 InstallTask createTask(TaskResourceGroup resourceList)
          Create a bundle task - install, update or remove
 void deactivate()
           
 org.osgi.framework.BundleContext getBundleContext()
           
protected  org.apache.sling.installer.core.impl.tasks.BundleTaskCreator.BundleInfo getBundleInfo(String symbolicName, String version)
           
 String getDescription()
           
 org.osgi.framework.Bundle getMatchingBundle(String bundleSymbolicName, String version)
          Finds the bundle with given symbolic name in our bundle context.
 org.osgi.service.packageadmin.PackageAdmin getPackageAdmin()
           
 org.osgi.service.startlevel.StartLevel getStartLevel()
           
 void init(org.osgi.framework.BundleContext bc)
           
 boolean isSnapshot(org.osgi.framework.Version v)
          Check if the version is a snapshot version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_START

public static final String ATTR_START
See Also:
Constant Field Values
Constructor Detail

BundleTaskCreator

public BundleTaskCreator()
Method Detail

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.