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
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
-
Method Summary
Modifier and TypeMethodDescriptionfinal <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) type()
A type token.
-
Constructor Details
-
Typed
public Typed()
-
-
Method Details
-
type
A type token. -
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>)
-