public final class DefaultExtensionsClient extends Object implements org.mule.runtime.extension.api.client.ExtensionsClient, org.mule.runtime.api.lifecycle.Initialisable
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(CoreEvent event,
ExtensionsClientProcessorsStrategyFactory extensionsClientProcessorsStrategyFactory)
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) |
void |
initialise() |
public DefaultExtensionsClient(CoreEvent event, ExtensionsClientProcessorsStrategyFactory extensionsClientProcessorsStrategyFactory)
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.event - the current execution event.extensionsClientProcessorsStrategyFactory - the factory used to get the appropriate operation message processor strategypublic 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.MuleExceptionpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.