Package step.artefacts.handlers
Class FunctionGroupHandler
- java.lang.Object
-
- step.core.artefacts.handlers.ArtefactHandler<FunctionGroup,ReportNode>
-
- step.artefacts.handlers.FunctionGroupHandler
-
- All Implemented Interfaces:
FunctionGroupHandle
public class FunctionGroupHandler extends ArtefactHandler<FunctionGroup,ReportNode> implements FunctionGroupHandle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionGroupHandler.FunctionGroupContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFUNCTION_GROUP_CONTEXT_KEY-
Fields inherited from class step.core.artefacts.handlers.ArtefactHandler
context, FILE_VARIABLE_PREFIX, logger, TEC_EXECUTION_REPORTNODES_PERSISTAFTER, TEC_EXECUTION_REPORTNODES_PERSISTBEFORE, TEC_EXECUTION_REPORTNODES_PERSISTONLYNONPASSED
-
-
Constructor Summary
Constructors Constructor Description FunctionGroupHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportNodecreateReportNode_(ReportNode parentNode, FunctionGroup testArtefact)Creates theReportNodecorresponding to the provided artefactprotected voidcreateReportSkeleton_(ReportNode node, FunctionGroup testArtefact)protected voidexecute_(ReportNode node, FunctionGroup testArtefact)Execute the provided artefact and report the execution to the provided report nodevoidinit(ExecutionContext context)booleanisInSession(AbstractContext context)voidreleaseTokens(AbstractContext context, boolean local)-
Methods inherited from class step.core.artefacts.handlers.ArtefactHandler
createReportSkeleton, createWorkArtefact, createWorkArtefact, createWorkArtefact, delegateCreateReportSkeleton, delegateCreateReportSkeleton, delegateExecute, delegateExecute, excludePropertyChildren, execute, fail, failWithException, failWithException, failWithException, filterPropertyChildren, getBindings, getChildren, getChildren, initProperties, isInSession, releaseTokens, removeReportNode
-
-
-
-
Field Detail
-
FUNCTION_GROUP_CONTEXT_KEY
public static final java.lang.String FUNCTION_GROUP_CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(ExecutionContext context)
- Overrides:
initin classArtefactHandler<FunctionGroup,ReportNode>
-
createReportSkeleton_
protected void createReportSkeleton_(ReportNode node, FunctionGroup testArtefact)
- Specified by:
createReportSkeleton_in classArtefactHandler<FunctionGroup,ReportNode>
-
execute_
protected void execute_(ReportNode node, FunctionGroup testArtefact) throws java.lang.Exception
Description copied from class:ArtefactHandlerExecute the provided artefact and report the execution to the provided report node- Specified by:
execute_in classArtefactHandler<FunctionGroup,ReportNode>- Parameters:
node- theReportNodecorresponding to the artefacttestArtefact- theAbstractArtefactto be executed- Throws:
java.lang.Exception
-
releaseTokens
public void releaseTokens(AbstractContext context, boolean local) throws java.lang.Exception
- Specified by:
releaseTokensin interfaceFunctionGroupHandle- Throws:
java.lang.Exception
-
isInSession
public boolean isInSession(AbstractContext context)
- Specified by:
isInSessionin interfaceFunctionGroupHandle
-
createReportNode_
public ReportNode createReportNode_(ReportNode parentNode, FunctionGroup testArtefact)
Description copied from class:ArtefactHandlerCreates theReportNodecorresponding to the provided artefact- Specified by:
createReportNode_in classArtefactHandler<FunctionGroup,ReportNode>- Parameters:
parentNode- the parentReportNodetestArtefact- the artefact to create the node for- Returns:
-
-