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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <T> TThe actual logic ofget(java.lang.Class<T>), such as retrieving overrides passed toStepContext.newBodyInvoker().final <T> TUsesdoGet(java.lang.Class<T>)but automatically translates certain kinds of objects into others.protected abstract org.jenkinsci.plugins.workflow.flow.FlowExecutionFinds the associated execution.protected abstract org.jenkinsci.plugins.workflow.graph.FlowNodegetNode()Finds the associated node.Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepContext
equals, hasBody, hashCode, isReady, newBodyInvoker, onSuccess, saveState, setResultMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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.Note that some basic types are handled directly by
get(java.lang.Class<T>)and cannot be overridden, such asRun,Job,FlowExecution,FlowNodeandStepDescriptor.- Specified by:
 getin classorg.jenkinsci.plugins.workflow.steps.StepContext- Throws:
 IOExceptionInterruptedException
 - 
doGet
The actual logic ofget(java.lang.Class<T>), such as retrieving overrides passed toStepContext.newBodyInvoker().- Throws:
 IOExceptionInterruptedException
 - 
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
 
 -