public final class InterceptingExecutionMediator extends Object implements ExecutionMediator
ExecutionMediator for intercepting operations.
It works by wrapping another mediator which is expected to return an InterceptingCallback
(IllegalStateException will be thrown otherwise). Once the callback has been obtained, it is placed as an
ExecutionContextAdapter variable with key ExtensionProperties.INTERCEPTING_CALLBACK_PARAM and returns the value
of InterceptingCallback.getResult().
This class is not responsible from actually invoking the intercepted chain nor invoking additional methods on the callback.
| Constructor and Description |
|---|
InterceptingExecutionMediator(ExecutionMediator intercepted)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Object> |
execute(org.mule.runtime.extension.api.runtime.operation.OperationExecutor executor,
ExecutionContextAdapter context)
Coordinates the execution of the
executor using the given context |
public InterceptingExecutionMediator(ExecutionMediator intercepted)
intercepted - a mediator which will actually execute the operationpublic org.reactivestreams.Publisher<Object> execute(org.mule.runtime.extension.api.runtime.operation.OperationExecutor executor, ExecutionContextAdapter context)
ExecutionMediatorexecutor using the given contextexecute in interface ExecutionMediatorexecutor - an OperationExecutorcontext - an ExecutionContextAdapterMono with the operation's resultCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.