Class DefaultStepContext
java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepContext
org.jenkinsci.plugins.workflow.support.DefaultStepContext
- All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<Object>
,Serializable
public abstract class DefaultStepContext
extends org.jenkinsci.plugins.workflow.steps.StepContext
Partial implementation of step context.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <T> T
The actual logic ofget(java.lang.Class<T>)
, such as retrieving overrides passed toStepContext.newBodyInvoker()
.final <T> T
UsesdoGet(java.lang.Class<T>)
but automatically translates certain kinds of objects into others.protected abstract org.jenkinsci.plugins.workflow.flow.FlowExecution
Finds the associated execution.protected abstract org.jenkinsci.plugins.workflow.graph.FlowNode
getNode()
Finds the associated node.Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepContext
equals, hasBody, hashCode, isReady, newBodyInvoker, onSuccess, saveState, setResult
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.util.concurrent.FutureCallback
onFailure
-
Constructor Details
-
DefaultStepContext
public DefaultStepContext()
-
-
Method Details
-
get
UsesdoGet(java.lang.Class<T>)
but automatically translates certain kinds of objects into others.- Specified by:
get
in classorg.jenkinsci.plugins.workflow.steps.StepContext
- Throws:
IOException
InterruptedException
-
doGet
The actual logic ofget(java.lang.Class<T>)
, such as retrieving overrides passed toStepContext.newBodyInvoker()
.- Throws:
IOException
InterruptedException
-
getExecution
@NonNull protected abstract org.jenkinsci.plugins.workflow.flow.FlowExecution getExecution() throws IOExceptionFinds the associated execution. Automatically available fromget(java.lang.Class<T>)
.- Throws:
IOException
-
getNode
@NonNull protected abstract org.jenkinsci.plugins.workflow.graph.FlowNode getNode() throws IOExceptionFinds the associated node. Automatically available fromget(java.lang.Class<T>)
.- Throws:
IOException
-