C - the generic type of the connections the delegate producespublic class ClassLoaderConnectionProviderWrapper<C> extends AbstractConnectionProviderWrapper<C>
ConnectionProviderWrapper which makes sure that all delegate methods are executed with a given classLoader| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
classLoader |
muleContext| Modifier and Type | Method and Description |
|---|---|
C |
connect() |
void |
disconnect(C connection) |
void |
dispose() |
Optional<ReconnectionConfig> |
getReconnectionConfig() |
void |
initialise() |
static <C> ClassLoaderConnectionProviderWrapper<C> |
newInstance(org.mule.runtime.api.connection.ConnectionProvider<C> provider,
ClassLoader classLoader)
Creates a new wrapper for the given
provider |
void |
start() |
void |
stop() |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(C connection) |
getConnectionManagementType, getDelegate, getDelegateForInjection, getPoolingProfile, getRetryPolicyTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOwnerConfigNameprotected final ClassLoader classLoader
public static <C> ClassLoaderConnectionProviderWrapper<C> newInstance(org.mule.runtime.api.connection.ConnectionProvider<C> provider, ClassLoader classLoader)
providerC - the generic type of the connections the delegate producesprovider - the delegateclassLoader - the ClassLoader to usepublic C connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<C>connect in class AbstractConnectionProviderWrapper<C>org.mule.runtime.api.connection.ConnectionExceptionpublic org.mule.runtime.api.connection.ConnectionValidationResult validate(C connection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<C>validate in class AbstractConnectionProviderWrapper<C>public void disconnect(C connection)
disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<C>disconnect in class AbstractConnectionProviderWrapper<C>public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractConnectionProviderWrapper<C>org.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class AbstractConnectionProviderWrapper<C>org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in class AbstractConnectionProviderWrapper<C>org.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposabledispose in class AbstractConnectionProviderWrapper<C>public Optional<ReconnectionConfig> getReconnectionConfig()
Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.