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

java.lang.Object
  extended by org.apache.sling.installer.api.tasks.InstallTask
      extended by org.apache.sling.installer.core.impl.AbstractInstallTask
          extended by org.apache.sling.installer.core.impl.tasks.BundleRemoveTask
All Implemented Interfaces:
Comparable<InstallTask>

public class BundleRemoveTask
extends AbstractInstallTask

Remove a bundle from a RegisteredResource. Creates a SynchronousRefreshPackagesTask when executed.


Constructor Summary
BundleRemoveTask(TaskResourceGroup r, BundleTaskCreator creator)
           
 
Method Summary
 void execute(InstallationContext ctx)
          This is the heart of the task - it performs the actual task.
 String getSortKey()
          Tasks are sorted according to this key.
 
Methods inherited from class org.apache.sling.installer.core.impl.AbstractInstallTask
getLogger
 
Methods inherited from class org.apache.sling.installer.api.tasks.InstallTask
compareTo, equals, getResource, getResourceGroup, hashCode, setFinishedState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleRemoveTask

public BundleRemoveTask(TaskResourceGroup r,
                        BundleTaskCreator creator)
Method Detail

execute

public void execute(InstallationContext ctx)
Description copied from class: InstallTask
This is the heart of the task - it performs the actual task.

Specified by:
execute in class InstallTask
Parameters:
ctx - The installation context.
See Also:
InstallTask.execute(org.apache.sling.installer.api.tasks.InstallationContext)

getSortKey

public String 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 class InstallTask


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.