Interface DynamicContext.DelegatedContext
-
- Enclosing interface:
- DynamicContext
public static interface DynamicContext.DelegatedContext
Restricted version ofStepContext
used only for delegation inDynamicContext.get(Class, DelegatedContext)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
get(Class<T> key)
Look for objects of the same or another type defined in this context.
-
-
-
Method Detail
-
get
@Nullable <T> T get(Class<T> key) throws IOException, InterruptedException
Look for objects of the same or another type defined in this context.A
DynamicContext
may use this handle to query theStepContext
for objects of other types.It may even look for objects of the same type as is being requested, as is typically done for merge calls such as those enumerated in
BodyInvoker.withContext(java.lang.Object)
, and it may ask for objects also provided by someDynamicContext
; but no recursive call toDynamicContext.get(Class, DelegatedContext)
on the same type from the same extension will be madeānull will be returned instead.- Type Parameters:
T
- same asStepContext.get(java.lang.Class<T>)
- Parameters:
key
- same asStepContext.get(java.lang.Class<T>)
- Returns:
- same as
StepContext.get(java.lang.Class<T>)
, but may additionally return null to break recursion - Throws:
IOException
- same asStepContext.get(java.lang.Class<T>)
InterruptedException
- same asStepContext.get(java.lang.Class<T>)
-
-