@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()
Deprecated.
Use
ResourceLoaderFactory(Environment) instead. |
ResourceLoaderFactory(Environment environment)
The resource factory.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystemResourceLoader |
fileSystemResourceLoader() |
protected ClassPathResourceLoader |
getClassPathResourceLoader() |
protected TypeConverter<CharSequence,Readable> |
readableTypeConverter(ResourceResolver resourceResolver)
Type converter for
Readable types. |
protected ResourceResolver |
resourceResolver(List<ResourceLoader> resourceLoaders) |
@Deprecated public ResourceLoaderFactory()
ResourceLoaderFactory(Environment)
instead.@Inject public ResourceLoaderFactory(Environment environment)
environment
- The environment@Singleton @Nonnull protected ClassPathResourceLoader getClassPathResourceLoader()
@Singleton @Nonnull protected FileSystemResourceLoader fileSystemResourceLoader()
@Singleton @Nonnull protected ResourceResolver resourceResolver(@Nonnull List<ResourceLoader> resourceLoaders)
resourceLoaders
- The resource loaders@Singleton @Nonnull protected TypeConverter<CharSequence,Readable> readableTypeConverter(ResourceResolver resourceResolver)
Readable
types.resourceResolver
- The resource resolver.