public abstract class ConditionalDelegateTask extends AbstractTask
DO_NOTHING, log
Modifier | Constructor and Description |
---|---|
protected |
ConditionalDelegateTask(String taskName,
String taskDescription,
Task ifTrue) |
|
ConditionalDelegateTask(String taskName,
String taskDescription,
Task ifTrue,
Task ifFalse) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
condition(InstallContext installContext) |
void |
execute(InstallContext ctx)
A good-citizen task should execute itself responsibly: it should know
what to do in case of problems: for instance, fixable or irrelevant
issues should usually just be logged used the InstallContext methods,
when the user can fix them later on.
|
getDescription, getName, toString
protected ConditionalDelegateTask(String taskName, String taskDescription, Task ifTrue)
public void execute(InstallContext ctx) throws TaskExecutionException
Task
TaskExecutionException
protected abstract boolean condition(InstallContext installContext) throws TaskExecutionException
TaskExecutionException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.