Interface ConnectionProvider<C>

Type Parameters:
C - the generic type of the connections to be handled
All Known Subinterfaces:
CachedConnectionProvider<C>, PoolingConnectionProvider<C>

@MinMuleVersion("4.5") public interface ConnectionProvider<C>
Handles connections of the generic Connection type, which are created from a configuration object of the generic type Config.

Providers centralize the logic and parametrization to provision and release connection, while remaining abstracted from the concerns of actually manage those connections.

Implementations are expected to be reusable and thread-safe.

It is valid for implementations to implement any of the lifecycle interfaces or to request external dependencies through any of the JSR-330 annotations. However, implementations are not propagate lifecycle or to perform dependency injection into the generated connections. The runtime will do that automatically at the proper time.

Since:
1.0