public abstract class AbstractCachingResourceLoader extends AbstractResourceLoader
endpointId, frameworkUtil, protocolId| Constructor and Description |
|---|
AbstractCachingResourceLoader(String protocolId,
String endpointId,
FrameworkBean frameworkUtil)
Instantiates a new abstract resource loader
|
| Modifier and Type | Method and Description |
|---|---|
abstract Resource |
buildResource(String objectId)
Builds the resource bound to the given object id
|
Resource |
load(String objectId)
Loads the resource with the given object id
|
void |
setCacheTimeout(long cacheTimeout)
Sets the cache timeout.
|
getEndpointId, getProtocolId, getServiceRegistry, init, setServiceRegistrypublic AbstractCachingResourceLoader(String protocolId, String endpointId, FrameworkBean frameworkUtil)
protocolId - the protocol idendpointId - the endpoint idpublic void setCacheTimeout(long cacheTimeout)
cacheTimeout - the new cache timeoutpublic Resource load(String objectId) throws ResourceLoaderException
ResourceLoaderobjectId - StringResourceLoaderExceptionpublic abstract Resource buildResource(String objectId) throws ResourceLoaderException
objectId - StringResourceLoaderExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.