public class ExtensionResolvingContext extends Object
| Constructor and Description |
|---|
ExtensionResolvingContext(Supplier<Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance>> configurationSupplier,
ConnectionManager connectionManager)
Retrieves the configuration for the related component
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
<C> Optional<C> |
getConfig() |
<C> Optional<C> |
getConnection()
Retrieves the connection for the related component and configuration
|
public ExtensionResolvingContext(Supplier<Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance>> configurationSupplier, ConnectionManager connectionManager)
configurationSupplier - Supplies optional configurationsconnectionManager - ConnectionManager which is able to find a connection for the component using the
public <C> Optional<C> getConfig()
C - Configuration typepublic <C> Optional<C> getConnection() throws org.mule.runtime.api.connection.ConnectionException
C - Connection typeOptional.empty() will be returnedorg.mule.runtime.api.connection.ConnectionException - when no valid connection is found for the related component and configurationpublic void dispose()
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.