Interface ConnectorProvider
-
- All Known Implementing Classes:
ConnectorProviderImpl
public interface ConnectorProviderContract 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connectorprovide(java.lang.String endpoint)Builds a Connector object mounted against the given endpoint
-
-
-
Method Detail
-
provide
Connector provide(java.lang.String endpoint) throws ConnectorProviderException
Builds a Connector object mounted against the given endpoint- Parameters:
endpoint- String- Returns:
- the connector object
- Throws:
ConnectorProviderException
-
-