org.springframework.extensions.surf.resource
Class AbstractResourceLoaderFactory

java.lang.Object
  extended by org.springframework.extensions.surf.support.BaseFactory
      extended by 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
           
 
Constructor Summary
AbstractResourceLoaderFactory()
           
 
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 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
 
Methods inherited from interface org.springframework.extensions.surf.resource.ResourceLoaderFactory
getResourceLoader
 

Field Detail

order

protected int order
Constructor Detail

AbstractResourceLoaderFactory

public AbstractResourceLoaderFactory()
Method Detail

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.