Class BundleUpdateTask
java.lang.Object
org.apache.sling.installer.api.tasks.InstallTask
org.apache.sling.installer.core.impl.AbstractInstallTask
org.apache.sling.installer.core.impl.tasks.AbstractBundleTask
org.apache.sling.installer.core.impl.tasks.BundleUpdateTask
- All Implemented Interfaces:
Comparable<InstallTask>
Update a bundle from a RegisteredResource. Creates
a bundleStartTask to restart the bundle if it was
active before the update.
-
Field Summary
Fields inherited from class org.apache.sling.installer.core.impl.tasks.AbstractBundleTask
ATTRIBUTE_BUNDLE_LOCATION
Fields inherited from class org.apache.sling.installer.api.tasks.InstallTask
ASYNC_ATTR_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is the heart of the task - it performs the actual task.org.osgi.framework.Bundle
Tasks are sorted according to this key.Methods inherited from class org.apache.sling.installer.core.impl.tasks.AbstractBundleTask
getBundleLocation, getBundleStartLevel, getSortableStartLevel, setBundleLocation
Methods inherited from class org.apache.sling.installer.core.impl.AbstractInstallTask
getBundleContext, getBundleRefresher, getLogger, getTaskSupport
Methods inherited from class org.apache.sling.installer.api.tasks.InstallTask
compareTo, equals, getResource, getResourceGroup, hashCode, isAsynchronousTask, setFinishedState, setFinishedState, setFinishedState, toString
-
Constructor Details
-
BundleUpdateTask
-
-
Method Details
-
execute
Description copied from class:InstallTask
This is the heart of the task - it performs the actual task.- Specified by:
execute
in classInstallTask
- Parameters:
ctx
- The installation context.- See Also:
-
getSortKey
Description copied from class:InstallTask
Tasks are sorted according to this key. Therefore this key must uniquely identify this task. A typical sort key contains the entity id of the resource in execution.- Specified by:
getSortKey
in classInstallTask
- Returns:
- The sorting key.
-
getBundle
public org.osgi.framework.Bundle getBundle()
-