ApplicationResourceLoader

A DefaultResourceLoader with any ProtocolResolvers registered in a spring.factories file applied to it. Plain paths without a qualifier will resolve to file system resources. This is different from DefaultResourceLoader, which resolves unqualified paths to classpath resources.

Author

Scott Frederick

Since

3.3.0

Constructors

Link copied to clipboard
constructor()
Create a new ApplicationResourceLoader.
constructor(classLoader: ClassLoader)
Create a new ApplicationResourceLoader.

Properties

Link copied to clipboard
Link copied to clipboard
val CLASSPATH_URL_PREFIX: String = "classpath:"

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getResource(location: String): Resource
Link copied to clipboard
open fun <T> getResourceCache(valueType: Class<T>): Map<Resource, T>