Class FlowRelativeResourceLoader
- java.lang.Object
-
- org.springframework.core.io.DefaultResourceLoader
-
- net.shibboleth.idp.profile.spring.factory.FlowRelativeResourceLoader
-
- All Implemented Interfaces:
ResourceLoader
class FlowRelativeResourceLoader extends DefaultResourceLoader
This code is extended from org.springframework.webflow.engine.builder.model.FlowRelativeResourceLoader with modifications to support proper lookup of resources via both filesystem and classpath along with custom protocol-specific loaders. This fills a gap for cases where the SpringResourceLoaderitself is fully replaced, versus relying solely on customized behavior in the Spring contexts themselves.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.core.io.DefaultResourceLoader
DefaultResourceLoader.ClassPathContextResource
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceflowResourceFlow resource for relative lookup.-
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
-
-
Constructor Summary
Constructors Constructor Description FlowRelativeResourceLoader(Resource resource)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ResourcecreateFlowRelativeResource(String location)ClassLoadergetClassLoader()ResourcegetResource(String location)protected ResourcegetResourceByPath(String path)-
Methods inherited from class org.springframework.core.io.DefaultResourceLoader
addProtocolResolver, clearResourceCaches, getProtocolResolvers, getResourceCache, setClassLoader
-
-
-
-
Field Detail
-
flowResource
private Resource flowResource
Flow resource for relative lookup.
-
-
Constructor Detail
-
FlowRelativeResourceLoader
public FlowRelativeResourceLoader(Resource resource)
Constructor.- Parameters:
resource- flow resource for relative lookup
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceResourceLoader- Overrides:
getClassLoaderin classDefaultResourceLoader
-
getResource
public Resource getResource(String location)
- Specified by:
getResourcein interfaceResourceLoader- Overrides:
getResourcein classDefaultResourceLoader
-
getResourceByPath
protected Resource getResourceByPath(String path)
Overrides the standard behavior of path-only resources and treats them as file paths if the path exists. Note that this differs from the ordinary Spring contexts that default to file paths because paths are treated as absolute if they are in fact absolute.
- Overrides:
getResourceByPathin classDefaultResourceLoader
-
-