Interface DynamicContext.DelegatedContext
- Enclosing interface:
- DynamicContext
public static interface DynamicContext.DelegatedContext
Restricted version of
StepContext
used only for delegation in DynamicContext.get(Class, DelegatedContext)
.-
Method Summary
-
Method Details
-
get
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>)
-