org.springframework.extensions.surf.resource.support
Class VirtualizedWebappResourceLoaderFactory

java.lang.Object
  extended by org.springframework.extensions.surf.support.BaseFactory
      extended by org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
          extended by org.springframework.extensions.surf.resource.AbstractCachingResourceLoaderFactory
              extended by org.springframework.extensions.surf.resource.support.VirtualizedWebappResourceLoaderFactory
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, ResourceLoaderFactory

public class VirtualizedWebappResourceLoaderFactory
extends AbstractCachingResourceLoaderFactory

Resource loader factory implementation for web applications.

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
order
 
Constructor Summary
VirtualizedWebappResourceLoaderFactory()
           
 
Method Summary
 ResourceLoader buildResourceLoader(String protocolId, String endpointId)
           
 boolean canHandle(String protocolId)
          Identifies whether this factory can produce resource loaders that can handle the given protocol
 String[] getSupportedProtocols()
          Gets the supported protocols.
 
Methods inherited from class org.springframework.extensions.surf.resource.AbstractCachingResourceLoaderFactory
getResourceLoader, setCacheTimeout
 
Methods inherited from class org.springframework.extensions.surf.resource.AbstractResourceLoaderFactory
getOrder, setOrder
 
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
 

Constructor Detail

VirtualizedWebappResourceLoaderFactory

public VirtualizedWebappResourceLoaderFactory()
Method Detail

buildResourceLoader

public ResourceLoader buildResourceLoader(String protocolId,
                                          String endpointId)
Specified by:
buildResourceLoader in class AbstractCachingResourceLoaderFactory

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
Overrides:
canHandle in class AbstractResourceLoaderFactory
Returns:
whether this factory can produce for the given protocol

getSupportedProtocols

public String[] getSupportedProtocols()
Description copied from class: AbstractResourceLoaderFactory
Gets the supported protocols.

Specified by:
getSupportedProtocols in class AbstractResourceLoaderFactory
Returns:
the supported protocols


Copyright © 2009 SpringSource, Inc. All Rights Reserved.