Spring Web Services Framework

org.springframework.ws.client.support.destination
Class AbstractCachingDestinationProvider

java.lang.Object
  extended by org.springframework.ws.client.support.destination.AbstractCachingDestinationProvider
All Implemented Interfaces:
DestinationProvider
Direct Known Subclasses:
Wsdl11DestinationProvider

public abstract class AbstractCachingDestinationProvider
extends Object
implements DestinationProvider

Abstract base class for DestinationProvider implementations that cache destination URI.

Caching can be disabled by setting the cache property to false; forcing a destination lookup for every call.

Since:
1.5.4
Author:
Arjen Poutsma

Field Summary
protected  Log logger
          Logger available to subclasses.
 
Constructor Summary
AbstractCachingDestinationProvider()
           
 
Method Summary
 URI getDestination()
          Return the destination URI.
protected abstract  URI lookupDestination()
          Abstract template method that looks up the URI.
 void setCache(boolean cache)
          Set whether to cache resolved destinations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Logger available to subclasses.

Constructor Detail

AbstractCachingDestinationProvider

public AbstractCachingDestinationProvider()
Method Detail

setCache

public void setCache(boolean cache)
Set whether to cache resolved destinations. Default is true. This flag can be turned off to re-lookup a destination for each operation, which allows for hot restarting of destinations. This is mainly useful during development.


getDestination

public final URI getDestination()
Description copied from interface: DestinationProvider
Return the destination URI.

Specified by:
getDestination in interface DestinationProvider
Returns:
the destination URI

lookupDestination

protected abstract URI lookupDestination()
Abstract template method that looks up the URI.

If caching is enabled, this method will only be called once.

Returns:
the destination URI

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.