Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Connector provide​(java.lang.String endpoint)
      Implementation of the contract to provide a Connector for our the web script framework.
      void setConnectorService​(ConnectorService connectorService)
      Sets the connector service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectorProviderImpl

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