public final class InterceptableOperationExecutorWrapper<M extends org.mule.runtime.api.meta.model.ComponentModel> extends AbstractInterceptable implements org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<M>, OperationArgumentResolverFactory<M>
ComponentExecutor adding the behavior defined in AbstractInterceptable.
Dependency injection and lifecycle phases will also be propagated to the delegate
muleContext| Constructor and Description |
|---|
InterceptableOperationExecutorWrapper(org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<M> delegate,
List<org.mule.runtime.extension.api.runtime.operation.Interceptor> interceptors)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Function<org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M>,Map<String,Object>> |
createArgumentResolver(M operationModel)
Builds the argument resolver based on an
executionContext and the internal state of this object. |
void |
dispose()
Propagates this lifecycle phase into the items in the
AbstractInterceptable.interceptors list and the delegate |
org.reactivestreams.Publisher<Object> |
execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M> executionContext)
Directly delegates into
delegate |
void |
initialise()
Performs dependency injection into the
delegate and the items in the AbstractInterceptable.interceptors list. |
void |
start()
Propagates this lifecycle phase into the items in the
AbstractInterceptable.interceptors list and the delegate |
void |
stop()
Propagates this lifecycle phase into the items in the
AbstractInterceptable.interceptors list and the delegate |
getInterceptorspublic InterceptableOperationExecutorWrapper(org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<M> delegate, List<org.mule.runtime.extension.api.runtime.operation.Interceptor> interceptors)
delegate - the ComponentExecutor to be decoratedinterceptors - the interceptors that should apply to the delegatepublic org.reactivestreams.Publisher<Object> execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M> executionContext)
delegate execute in interface org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<M extends org.mule.runtime.api.meta.model.ComponentModel>public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
delegate and the items in the AbstractInterceptable.interceptors list.
Then it propagates this lifecycle phase into them.
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractInterceptableorg.mule.runtime.api.lifecycle.InitialisationException - in case of errorpublic void start()
throws org.mule.runtime.api.exception.MuleException
AbstractInterceptable.interceptors list and the delegatestart in interface org.mule.runtime.api.lifecycle.Startablestart in class AbstractInterceptableorg.mule.runtime.api.exception.MuleException - in case of errorpublic void stop()
throws org.mule.runtime.api.exception.MuleException
AbstractInterceptable.interceptors list and the delegatestop in interface org.mule.runtime.api.lifecycle.Stoppablestop in class AbstractInterceptableorg.mule.runtime.api.exception.MuleException - in case of errorpublic void dispose()
AbstractInterceptable.interceptors list and the delegatedispose in interface org.mule.runtime.api.lifecycle.Disposabledispose in class AbstractInterceptableorg.mule.runtime.api.exception.MuleException - in case of errorpublic Function<org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M>,Map<String,Object>> createArgumentResolver(M operationModel)
OperationArgumentResolverFactoryexecutionContext and the internal state of this object.createArgumentResolver in interface OperationArgumentResolverFactory<M extends org.mule.runtime.api.meta.model.ComponentModel>Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.