@Factory public class ResourceLoaderFactory extends Object
ResourceLoader
s to handle static resource requests. Registers a resource resolver that
uses those beans.Constructor and Description |
---|
ResourceLoaderFactory(Environment environment)
The resource factory.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystemResourceLoader |
fileSystemResourceLoader() |
protected ClassPathResourceLoader |
getClassPathResourceLoader() |
protected ResourceResolver |
resourceResolver(List<ResourceLoader> resourceLoaders) |
public ResourceLoaderFactory(Environment environment)
environment
- The environment@Singleton @NonNull protected ClassPathResourceLoader getClassPathResourceLoader()
@Singleton @NonNull protected FileSystemResourceLoader fileSystemResourceLoader()
@Singleton @Indexed(value=ResourceResolver.class) @NonNull protected ResourceResolver resourceResolver(@NonNull List<ResourceLoader> resourceLoaders)
resourceLoaders
- The resource loaders