Constructor and Description |
---|
NamedViewResolver() |
NamedViewResolver(NamedViewCache cache) |
Modifier and Type | Method and Description |
---|---|
<T> T |
onFailure(T result,
OperationChain<?> opChain,
Context context,
Exception e)
Called from
Graph if an error occurs whilst
executing the OperationChain . |
<T> T |
postExecute(T result,
OperationChain<?> opChain,
Context context)
Called from
Graph after an OperationChain
is executed. |
void |
preExecute(OperationChain<?> opChain,
Context context)
Called from
Graph before an OperationChain
is executed. |
public NamedViewResolver()
public NamedViewResolver(NamedViewCache cache)
public void preExecute(OperationChain<?> opChain, Context context)
GraphHook
Graph
before an OperationChain
is executed.preExecute
in interface GraphHook
opChain
- the OperationChain
being executed. This can be modified/optimised in any GraphHook.context
- the Context
in which the operation chain was executed. The context also holds a reference to the original operation chain.public <T> T postExecute(T result, OperationChain<?> opChain, Context context)
GraphHook
Graph
after an OperationChain
is executed.postExecute
in interface GraphHook
T
- the result typeresult
- the result from the operation chainopChain
- the OperationChain
that was executed. This can be modified/optimised in any GraphHook.context
- the Context
in which the operation chain was executed. The context also holds a reference to the original operation chain.public <T> T onFailure(T result, OperationChain<?> opChain, Context context, Exception e)
GraphHook
Graph
if an error occurs whilst
executing the OperationChain
.onFailure
in interface GraphHook
T
- the result typeresult
- the result from the operation chain - likely to be null.opChain
- the OperationChain
that was executed. This can be modified/optimised in any GraphHook.context
- the Context
in which the operation chain was executed. The context also holds a reference to the original operation chain.e
- the exceptionCopyright © 2022. All rights reserved.