Class ConnectorProviderImpl

java.lang.Object
org.springframework.extensions.webscripts.connector.ConnectorProviderImpl
All Implemented Interfaces:
ConnectorProvider

public class ConnectorProviderImpl extends 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 Details

    • ConnectorProviderImpl

      public ConnectorProviderImpl()
  • Method Details

    • setConnectorService

      public void setConnectorService(ConnectorService connectorService)
      Sets the connector service.
      Parameters:
      connectorService - ConnectorService
    • provide

      public Connector provide(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:
      provide in interface ConnectorProvider
      Parameters:
      endpoint - String
      Returns:
      the connector object
      Throws:
      ConnectorProviderException