org.springframework.extensions.surf.resource
Interface ResourceLoaderFactory

All Known Implementing Classes:
AbstractCachingResourceLoaderFactory, AbstractResourceLoaderFactory, AlfrescoResourceLoaderFactory, CMISResourceLoaderFactory, URLResourceLoaderFactory, VirtualizedWebappResourceLoaderFactory

public interface ResourceLoaderFactory

Interface for web framework resource loader factories.

Author:
muzquiano

Method Summary
 boolean canHandle(String protocolId)
          Identifies whether this factory can produce resource loaders that can handle the given protocol
 int getOrder()
          Returns the order of preference for this resource loader
 ResourceLoader getResourceLoader(String protocolId, String endpointId)
          Returns a resource loader that is bound to the given endpoint.
 

Method Detail

getResourceLoader

ResourceLoader getResourceLoader(String protocolId,
                                 String endpointId)
Returns a resource loader that is bound to the given endpoint.

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

getOrder

int getOrder()
Returns the order of preference for this resource loader

Returns:
order

canHandle

boolean canHandle(String protocolId)
Identifies whether this factory can produce resource loaders that can handle the given protocol

Parameters:
protocolId -
Returns:
whether this factory can produce for the given protocol


Copyright © 2009 SpringSource, Inc. All Rights Reserved.