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 class
FunctionGroupHandler.FunctionGroupContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FUNCTION_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 ReportNode
createReportNode_(ReportNode parentNode, FunctionGroup testArtefact)
Creates theReportNode
corresponding to the provided artefactprotected void
createReportSkeleton_(ReportNode node, FunctionGroup testArtefact)
protected void
execute_(ReportNode node, FunctionGroup testArtefact)
Execute the provided artefact and report the execution to the provided report nodevoid
init(ExecutionContext context)
boolean
isInSession(AbstractContext context)
void
releaseTokens(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:
init
in 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:ArtefactHandler
Execute the provided artefact and report the execution to the provided report node- Specified by:
execute_
in classArtefactHandler<FunctionGroup,ReportNode>
- Parameters:
node
- theReportNode
corresponding to the artefacttestArtefact
- theAbstractArtefact
to be executed- Throws:
java.lang.Exception
-
releaseTokens
public void releaseTokens(AbstractContext context, boolean local) throws java.lang.Exception
- Specified by:
releaseTokens
in interfaceFunctionGroupHandle
- Throws:
java.lang.Exception
-
isInSession
public boolean isInSession(AbstractContext context)
- Specified by:
isInSession
in interfaceFunctionGroupHandle
-
createReportNode_
public ReportNode createReportNode_(ReportNode parentNode, FunctionGroup testArtefact)
Description copied from class:ArtefactHandler
Creates theReportNode
corresponding to the provided artefact- Specified by:
createReportNode_
in classArtefactHandler<FunctionGroup,ReportNode>
- Parameters:
parentNode
- the parentReportNode
testArtefact
- the artefact to create the node for- Returns:
-
-