@Factory public class ResourceLoaderFactory extends java.lang.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(java.util.List<ResourceLoader> resourceLoaders) |
@Inject 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 java.util.List<ResourceLoader> resourceLoaders)
resourceLoaders
- The resource loaders