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
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogLogger available to subclasses. -
Constructor Summary
Constructors -
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:DestinationProviderReturn the destination URI.- Specified by:
getDestinationin 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
-