public class ExtensionConnectionSupplier extends Object
ComponentModel and the ConnectionManager which provides the connections
that it needs.
It handles connection provisioning and transaction support
| Constructor and Description |
|---|
ExtensionConnectionSupplier() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.connection.ConnectionHandler<?> |
getConnection(ExecutionContextAdapter<? extends org.mule.runtime.api.meta.model.ComponentModel> executionContext)
Returns the connection to be used with the
operationContext. |
void |
setMuleContext(MuleContext muleContext) |
public org.mule.runtime.api.connection.ConnectionHandler<?> getConnection(ExecutionContextAdapter<? extends org.mule.runtime.api.meta.model.ComponentModel> executionContext) throws org.mule.runtime.api.connection.ConnectionException, org.mule.runtime.api.tx.TransactionException
operationContext.
It accounts for the possibility of the returned connection joining/belonging to an active transaction
executionContext - an ExecutionContextAdapterConnectionHandlerorg.mule.runtime.api.connection.ConnectionException - if connection could not be obtainedorg.mule.runtime.api.tx.TransactionException - if something is wrong with the transaction@Inject public void setMuleContext(MuleContext muleContext)
Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.