Class AbstractCachingDestinationProvider
java.lang.Object
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
Modifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
Logger available to subclasses. -
Constructor Summary
-
Method Summary
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger available to subclasses.
-
-
Constructor Details
-
AbstractCachingDestinationProvider
public AbstractCachingDestinationProvider()
-
-
Method Details
-
setCache
public void setCache(boolean cache) Set whether to cache resolved destinations. Default istrue
. 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
Description copied from interface:DestinationProvider
Return the destination URI.- Specified by:
getDestination
in interfaceDestinationProvider
- Returns:
- the destination 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
-