org.springframework.extensions.surf.resource
Class AbstractCachingResourceLoaderFactory
java.lang.Object
org.springframework.extensions.surf.support.BaseFactory
org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCachingResourceLoaderFactory
public AbstractCachingResourceLoaderFactory()
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 idendpointId
- the endpoint id
- Returns:
- the resource loader
buildResourceLoader
public abstract ResourceLoader buildResourceLoader(String protocolId,
String endpointId)
Copyright © 2009 SpringSource, Inc. All Rights Reserved.