Class ConnectorProviderImpl
- java.lang.Object
-
- org.springframework.extensions.webscripts.connector.ConnectorProviderImpl
-
- All Implemented Interfaces:
ConnectorProvider
public class ConnectorProviderImpl extends java.lang.Object implements 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 Constructor Description ConnectorProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectorprovide(java.lang.String endpoint)Implementation of the contract to provide a Connector for our the web script framework.voidsetConnectorService(ConnectorService connectorService)Sets the connector service.
-
-
-
Method Detail
-
setConnectorService
public void setConnectorService(ConnectorService connectorService)
Sets the connector service.- Parameters:
connectorService- ConnectorService
-
provide
public Connector provide(java.lang.String endpoint) throws ConnectorProviderException
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
-
-