org.springframework.extensions.surf.resource
Class AbstractCachingResourceLoaderFactory

java.lang.Object
  extended by org.springframework.extensions.surf.support.BaseFactory
      extended by org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
          extended by org.springframework.extensions.surf.resource.AbstractCachingResourceLoaderFactory
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, ResourceLoaderFactory
Direct Known Subclasses:
AlfrescoResourceLoaderFactory, CMISResourceLoaderFactory, URLResourceLoaderFactory, VirtualizedWebappResourceLoaderFactory

public abstract class AbstractCachingResourceLoaderFactory
extends AbstractResourceLoaderFactory

Abstract class that provides caching of resource loaders for endpoints

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
order
 
Constructor Summary
AbstractCachingResourceLoaderFactory()
           
 
Method Summary
abstract  ResourceLoader buildResourceLoader(String protocolId, String endpointId)
           
 ResourceLoader getResourceLoader(String protocolId, String endpointId)
          Returns a resource loader that is bound to the given endpoint.
 void setCacheTimeout(long cacheTimeout)
          Sets the cache timeout.
 
Methods inherited from class org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
canHandle, getOrder, getSupportedProtocols, setOrder
 
Methods inherited from class org.springframework.extensions.surf.support.BaseFactory
getApplicationContext, getResourceService, getServiceRegistry, getWebFrameworkConfiguration, getWebFrameworkManager, setApplicationContext, setServiceRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCachingResourceLoaderFactory

public AbstractCachingResourceLoaderFactory()
Method Detail

setCacheTimeout

public void setCacheTimeout(long cacheTimeout)
Sets the cache timeout.

Parameters:
cacheTimeout - the new cache timeout

getResourceLoader

public ResourceLoader getResourceLoader(String protocolId,
                                        String endpointId)
Description copied from interface: ResourceLoaderFactory
Returns a resource loader that is bound to the given endpoint.

Parameters:
protocolId - the protocol id
endpointId - the endpoint id
Returns:
the resource loader

buildResourceLoader

public abstract ResourceLoader buildResourceLoader(String protocolId,
                                                   String endpointId)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.