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 Details

    • logger

      protected final org.apache.commons.logging.Log logger
      Logger available to subclasses.
  • Constructor Details

    • AbstractCachingDestinationProvider

      public AbstractCachingDestinationProvider()
  • Method Details

    • 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