|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.installer.api.tasks.InstallTask
public abstract class InstallTask
Base class for tasks that can be executed by the
OsgiInstaller
.
Constructor Summary | |
---|---|
InstallTask(TaskResourceGroup erl)
Constructor for the task |
Method Summary | |
---|---|
int |
compareTo(InstallTask o)
All comparisons are based on getSortKey(). |
boolean |
equals(Object o)
|
abstract void |
execute(InstallationContext ctx)
This is the heart of the task - it performs the actual task. |
TaskResource |
getResource()
Return the corresponding resource - depending on the task this might be null. |
TaskResourceGroup |
getResourceGroup()
Return the corresponding resource - depending on the task this might be null. |
abstract String |
getSortKey()
Tasks are sorted according to this key. |
int |
hashCode()
|
void |
setFinishedState(ResourceState state)
Set the finished state for the resource. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstallTask(TaskResourceGroup erl)
erl
- The resource group or null
.Method Detail |
---|
public TaskResource getResource()
public TaskResourceGroup getResourceGroup()
public abstract void execute(InstallationContext ctx)
ctx
- The installation context.public abstract String getSortKey()
public void setFinishedState(ResourceState state)
state
- The new state.public String toString()
toString
in class Object
public final boolean equals(Object o)
equals
in class Object
public final int hashCode()
hashCode
in class Object
public final int compareTo(InstallTask o)
compareTo
in interface Comparable<InstallTask>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |