org.schmant.tpm
Interface TaskPackageEnableCallback

All Known Implementing Classes:
JythonExecutor

public interface TaskPackageEnableCallback

This interface defines a callback that is called by a TaskPackage just before and just after it enables itself. A ScriptExecutor may use this to prepare the environment.

The ScriptExecutor registers its callback using the TaskPackageManager.registerTaskPackageEnableCallback(TaskPackageEnableCallback) method.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 void postEnable(TaskPackage tp, Report r)
          This method is called just after the task package has enabled itself.
 void preEnable(TaskPackage tp, Report r)
          This method is called just before the task package enables itself.
 

Method Detail

preEnable

void preEnable(TaskPackage tp,
               Report r)
               throws RuntimeException
This method is called just before the task package enables itself.

Parameters:
tp - The task package.
r - The current report.
Throws:
RuntimeException - Or any subclass on errors.

postEnable

void postEnable(TaskPackage tp,
                Report r)
                throws RuntimeException
This method is called just after the task package has enabled itself.

Parameters:
tp - The task package.
r - The current report.
Throws:
RuntimeException - Or any subclass on errors.