org.springframework.extensions.webscripts.connector
Interface ConnectorProvider

All Known Implementing Classes:
ConnectorProviderImpl, WebFrameworkConnectorProvider

public interface ConnectorProvider

Contract to be implemented by any object that can provide a Connector to another object.

Connectors are quite expensive to instantiate and obtain. Therefore this contract is generally used where you want to lazily provide a connector in a situation where it is not know if a connector is actually required (maybe due to caching etc.) until runtime.

Author:
Kevin Roast

Method Summary
 Connector provide(String endpoint)
          Builds a Connector object mounted against the given endpoint
 

Method Detail

provide

Connector provide(String endpoint)
                  throws ConnectorProviderException
Builds a Connector object mounted against the given endpoint

Parameters:
endpoint -
Returns:
the connector object
Throws:
ConnectorProviderException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.