org.springframework.extensions.surf
Class WebFrameworkConnectorProvider
java.lang.Object
org.springframework.extensions.surf.WebFrameworkConnectorProvider
- All Implemented Interfaces:
- ConnectorProvider
public class WebFrameworkConnectorProvider
- extends Object
- implements ConnectorProvider
An implementation of connector provider that provides access to the
Web Framework request context to build connectors
- Author:
- Kevin Roast, muzquiano
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebFrameworkConnectorProvider
public WebFrameworkConnectorProvider()
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 remote store.
This 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.