Class ConnectorProviderImpl
java.lang.Object
org.springframework.extensions.webscripts.connector.ConnectorProviderImpl
- All Implemented Interfaces:
ConnectorProvider
A very simple implementation of a connector provider that provisions
web script connectors. These are inherently stateless connectors - no
reuse of credentials or connector session data is applied to the
provisioned connectors.
The connector provider pattern is utilized by the remote store as well
as the script remote object. Both delegate to connector providers so as
to acquire connectors.
- Author:
- muzquiano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImplementation of the contract to provide a Connector for our the web script framework.voidsetConnectorService(ConnectorService connectorService) Sets the connector service.
-
Constructor Details
-
ConnectorProviderImpl
public ConnectorProviderImpl()
-
-
Method Details
-
setConnectorService
Sets the connector service.- Parameters:
connectorService- ConnectorService
-
provide
Implementation of the contract to provide a Connector for our the web script framework. Allows lazy providing of the Connector object only if the remote store actually needs it. Otherwise acquiring the Connector when rarely used is an expensive overhead as most objects are cached by the persister in which case the remote store isn't actually called.- Specified by:
providein interfaceConnectorProvider- Parameters:
endpoint- String- Returns:
- the connector object
- Throws:
ConnectorProviderException
-