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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultStepContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <T> T
doGet(Class<T> key)
The actual logic ofget(java.lang.Class<T>)
, such as retrieving overrides passed toStepContext.newBodyInvoker()
.<T> T
get(Class<T> key)
UsesdoGet(java.lang.Class<T>)
but automatically translates certain kinds of objects into others.protected abstract org.jenkinsci.plugins.workflow.flow.FlowExecution
getExecution()
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
-
-
-
-
Method Detail
-
get
public final <T> T get(Class<T> key) throws IOException, InterruptedException
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
@CheckForNull protected abstract <T> T doGet(Class<T> key) throws IOException, InterruptedException
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 IOException
Finds the associated execution. Automatically available fromget(java.lang.Class<T>)
.- Throws:
IOException
-
getNode
@NonNull protected abstract org.jenkinsci.plugins.workflow.graph.FlowNode getNode() throws IOException
Finds the associated node. Automatically available fromget(java.lang.Class<T>)
.- Throws:
IOException
-
-