org.springframework.extensions.webscripts.connector
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorProviderImpl
public ConnectorProviderImpl()
setConnectorService
public void setConnectorService(ConnectorService connectorService)
- Sets the connector service.
- Parameters:
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
- Returns:
- the connector object
- Throws:
ConnectorProviderException
Copyright © 2009 SpringSource, Inc. All Rights Reserved.