org.springframework.extensions.surf.resource
Class AbstractResourceLoaderFactory
java.lang.Object
org.springframework.extensions.surf.support.BaseFactory
org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, ResourceLoaderFactory
- Direct Known Subclasses:
- AbstractCachingResourceLoaderFactory
public abstract class AbstractResourceLoaderFactory
- extends BaseFactory
- implements ResourceLoaderFactory
Abstract class that provides caching of resource loaders
for endpoints
- Author:
- muzquiano
Field Summary |
protected int |
order
|
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 |
abstract String[] |
getSupportedProtocols()
Gets the supported protocols. |
void |
setOrder(int order)
Sets the order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
order
protected int order
AbstractResourceLoaderFactory
public AbstractResourceLoaderFactory()
setOrder
public void setOrder(int order)
- Sets the order.
- Parameters:
order
- the new order
getOrder
public int getOrder()
- Description copied from interface:
ResourceLoaderFactory
- Returns the order of preference for this resource loader
- Specified by:
getOrder
in interface ResourceLoaderFactory
- Returns:
- order
canHandle
public boolean canHandle(String protocolId)
- Description copied from interface:
ResourceLoaderFactory
- Identifies whether this factory can produce resource
loaders that can handle the given protocol
- Specified by:
canHandle
in interface ResourceLoaderFactory
- Returns:
- whether this factory can produce for the given protocol
getSupportedProtocols
public abstract String[] getSupportedProtocols()
- Gets the supported protocols.
- Returns:
- the supported protocols
Copyright © 2009 SpringSource, Inc. All Rights Reserved.