public final class DefaultExtensionsClient extends Object implements org.mule.runtime.extension.api.client.ExtensionsClient
ExtensionsClient, it uses the ExtensionManager in the
MuleContext to search for the extension that wants to execute the operation from.
The concrete execution of the operation is handled by an OperationMessageProcessor instance.
This implementation can only execute extensions that were built using the SDK, Smart Connectors operations can't be executed.
| Constructor and Description |
|---|
DefaultExtensionsClient()
Creating a client from this constructor will enable the execution of operations with an initializer event.
|
DefaultExtensionsClient(MuleContext muleContext,
CoreEvent event,
org.mule.runtime.api.artifact.Registry registry,
PolicyManager policyManager)
This constructor enables the
DefaultExtensionsClient to be aware of the current execution CoreEvent and
enables to perform the dynamic operation execution with the same event that the SDK operation using the ExtensionsClient
receives. |
| Modifier and Type | Method and Description |
|---|---|
<T,A> org.mule.runtime.extension.api.runtime.operation.Result<T,A> |
execute(String extension,
String operation,
org.mule.runtime.extension.api.client.OperationParameters params) |
<T,A> CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<T,A>> |
executeAsync(String extension,
String operation,
org.mule.runtime.extension.api.client.OperationParameters parameters) |
public DefaultExtensionsClient(MuleContext muleContext, CoreEvent event, org.mule.runtime.api.artifact.Registry registry, PolicyManager policyManager)
DefaultExtensionsClient to be aware of the current execution CoreEvent and
enables to perform the dynamic operation execution with the same event that the SDK operation using the ExtensionsClient
receives.muleContext - the current context.event - the current execution event.registry - the application registry.policyManager - the configured application policy manager.public DefaultExtensionsClient()
public <T,A> CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<T,A>> executeAsync(String extension, String operation, org.mule.runtime.extension.api.client.OperationParameters parameters)
executeAsync in interface org.mule.runtime.extension.api.client.ExtensionsClientpublic <T,A> org.mule.runtime.extension.api.runtime.operation.Result<T,A> execute(String extension, String operation, org.mule.runtime.extension.api.client.OperationParameters params) throws org.mule.runtime.api.exception.MuleException
execute in interface org.mule.runtime.extension.api.client.ExtensionsClientorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.