org.springframework.extensions.surf
Class WebFrameworkConnectorProvider

java.lang.Object
  extended by 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

Constructor Summary
WebFrameworkConnectorProvider()
           
 
Method Summary
 Connector provide(String endpoint)
          Implementation of the contract to provide a Connector for our remote store.
 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

WebFrameworkConnectorProvider

public WebFrameworkConnectorProvider()
Method Detail

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.