Interface ConnectorProvider
- All Known Implementing Classes:
ConnectorProviderImpl
public interface ConnectorProvider
Contract to be implemented by any object that can provide a Connector to another object.
Connectors are quite expensive to instantiate and obtain. Therefore this contract is generally used where you want to lazily provide a connector in a situation where it is not know if a connector is actually required (maybe due to caching etc.) until runtime.
- Author:
- Kevin Roast
-
Method Summary
-
Method Details
-
provide
Builds a Connector object mounted against the given endpoint- Parameters:
endpoint- String- Returns:
- the connector object
- Throws:
ConnectorProviderException
-