Class DynamicContext.Typed<T>
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.steps.DynamicContext.Typed<T>
-
- Type Parameters:
T
- the type of object
- All Implemented Interfaces:
ExtensionPoint
,DynamicContext
- Enclosing interface:
- DynamicContext
public abstract static class DynamicContext.Typed<T> extends Object implements DynamicContext
A convenience subclass for the common case that you are returning only one kind of object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.workflow.steps.DynamicContext
DynamicContext.DelegatedContext, DynamicContext.Typed<T>
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Typed()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <U> U
get(Class<U> key, DynamicContext.DelegatedContext context)
Actually look up a given object in a particular context.protected abstract T
get(DynamicContext.DelegatedContext context)
protected abstract Class<T>
type()
A type token.
-
-
-
Method Detail
-
get
@CheckForNull protected abstract T get(DynamicContext.DelegatedContext context) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
get
public final <U> U get(Class<U> key, DynamicContext.DelegatedContext context) throws IOException, InterruptedException
Description copied from interface:DynamicContext
Actually look up a given object in a particular context.- Specified by:
get
in interfaceDynamicContext
- Type Parameters:
U
- same asStepContext.get(java.lang.Class<T>)
- Parameters:
key
- same asStepContext.get(java.lang.Class<T>)
context
- the context being queried- Returns:
- same as
StepContext.get(java.lang.Class<T>)
- Throws:
IOException
- same asStepContext.get(java.lang.Class<T>)
InterruptedException
- same asStepContext.get(java.lang.Class<T>)
-
-