Uses of Interface
org.springframework.core.io.ResourceLoader
Package
Description
Classes supporting the
org.springframework.beans.factory
package.Contains an abstract XML-based
BeanFactory
implementation,
including a standard "spring-beans" XSD.Classes supporting the org.springframework.beans package,
such as utility classes for sorting and holding lists of beans.
This package builds on the beans package to add support for
message sources and for the Observer design pattern, and the
ability for application objects to obtain resources using a
consistent API.
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Generic abstraction for (file-based) resources, used throughout the framework.
Support classes for Spring's resource abstraction.
Support classes for reading annotation and class-level metadata.
Defines the Spring JDBC configuration namespace.
Provides extensible support for creating embedded database instances.
A comprehensive set of Servlet API 6.0 mock objects, targeted at usage with
Spring's Web MVC framework.
Package providing integration of
Hibernate 5.x
with Spring concepts.
Package providing integration of JPA (Java Persistence API) with Spring concepts.
Internal support for managing JPA persistence units.
Support classes for the open source scheduler
Quartz,
allowing to set up Quartz Schedulers, JobDetails and
Triggers as beans in a Spring context.
Support classes for Spring's scripting package.
Support classes for the Spring TestContext Framework.
Common utilities used within the Spring TestContext Framework.
Support classes for setting up
FreeMarker
within a Spring application context.
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.Spring WebFlux configuration infrastructure.
Support classes for serving static resources.
-
Uses of ResourceLoader in org.springframework.beans.factory.support
Modifier and TypeMethodDescriptionAbstractBeanDefinitionReader.getResourceLoader()
BeanDefinitionReader.getResourceLoader()
Return theResourceLoader
to use for resource locations.Modifier and TypeMethodDescriptionvoid
AbstractBeanDefinitionReader.setResourceLoader
(ResourceLoader resourceLoader) Set the ResourceLoader to use for resource locations. -
Uses of ResourceLoader in org.springframework.beans.factory.xml
Modifier and TypeMethodDescriptionfinal ResourceLoader
XmlReaderContext.getResourceLoader()
Return the resource loader to use, if any.ModifierConstructorDescriptionResourceEntityResolver
(ResourceLoader resourceLoader) Create a ResourceEntityResolver for the specified ResourceLoader (usually, an ApplicationContext). -
Uses of ResourceLoader in org.springframework.beans.support
ModifierConstructorDescriptionResourceEditorRegistrar
(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new ResourceEditorRegistrar for the givenResourceLoader
andPropertyResolver
. -
Uses of ResourceLoader in org.springframework.context
Modifier and TypeInterfaceDescriptioninterface
Central interface to provide configuration for an application.interface
SPI interface to be implemented by most if not all application contexts.Modifier and TypeMethodDescriptionvoid
ResourceLoaderAware.setResourceLoader
(ResourceLoader resourceLoader) Set the ResourceLoader that this object runs in. -
Uses of ResourceLoader in org.springframework.context.annotation
Modifier and TypeClassDescriptionclass
Standalone application context, accepting component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
types and JSR-330 compliant classes usingjakarta.inject
annotations.Modifier and TypeMethodDescriptionfinal ResourceLoader
ClassPathScanningCandidateComponentProvider.getResourceLoader()
Return the ResourceLoader that this component provider uses.ConditionContext.getResourceLoader()
Return theResourceLoader
currently being used.Modifier and TypeMethodDescriptionstatic List<TypeFilter>
TypeFilterUtils.createTypeFiltersFor
(AnnotationAttributes filterAttributes, Environment environment, ResourceLoader resourceLoader, BeanDefinitionRegistry registry) Create type filters from the suppliedAnnotationAttributes
, such as those sourced fromComponentScan.includeFilters()
orComponentScan.excludeFilters()
.void
ClassPathScanningCandidateComponentProvider.setResourceLoader
(ResourceLoader resourceLoader) Set theResourceLoader
to use for resource locations.void
ConfigurationClassPostProcessor.setResourceLoader
(ResourceLoader resourceLoader) ModifierConstructorDescriptionClassPathBeanDefinitionScanner
(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment, ResourceLoader resourceLoader) Create a newClassPathBeanDefinitionScanner
for the given bean factory and using the givenEnvironment
when evaluating bean definition profile metadata. -
Uses of ResourceLoader in org.springframework.context.support
Modifier and TypeClassDescriptionclass
Abstract implementation of theApplicationContext
interface.class
Base class forApplicationContext
implementations which are supposed to support multiple calls toAbstractApplicationContext.refresh()
, creating a new internal bean factory instance every time.class
AbstractRefreshableApplicationContext
subclass that adds common handling of specified config locations.class
Convenient base class forApplicationContext
implementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader
.class
Standalone XML application context, taking the context definition files from the class path, interpreting plain paths as class path resource names that include the package path (e.g.class
Standalone XML application context, taking the context definition files from the file system or from URLs, interpreting plain paths as relative file system locations (e.g.class
Generic ApplicationContext implementation that holds a single internalDefaultListableBeanFactory
instance and does not assume a specific bean definition format.class
AnApplicationContext
implementation that extendsGenericApplicationContext
and implementsGroovyObject
such that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String)
.class
Convenient application context with built-in XML support.class
ApplicationContext
implementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.Modifier and TypeMethodDescriptionvoid
GenericApplicationContext.setResourceLoader
(ResourceLoader resourceLoader) Set a ResourceLoader to use for this context.void
ReloadableResourceBundleMessageSource.setResourceLoader
(ResourceLoader resourceLoader) Set the ResourceLoader to use for loading bundle properties files. -
Uses of ResourceLoader in org.springframework.core.io
Modifier and TypeClassDescriptionclass
ResourceLoader
implementation that interprets plain resource paths as relative to a givenjava.lang.Class
.class
Default implementation of theResourceLoader
interface.class
ResourceLoader
implementation that resolves plain paths as file system resources rather than as class path resources (the latter isDefaultResourceLoader
's default strategy).Modifier and TypeMethodDescriptionProtocolResolver.resolve
(String location, ResourceLoader resourceLoader) Resolve the given location against the given resource loader if this implementation's protocol matches.ModifierConstructorDescriptionResourceEditor
(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new instance of theResourceEditor
class using the givenResourceLoader
andPropertyResolver
.ResourceEditor
(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new instance of theResourceEditor
class using the givenResourceLoader
. -
Uses of ResourceLoader in org.springframework.core.io.support
Modifier and TypeInterfaceDescriptioninterface
Strategy interface for resolving a location pattern (for example, an Ant-style path pattern) intoResource
objects.Modifier and TypeClassDescriptionclass
AResourcePatternResolver
implementation that is able to resolve a specified resource location path into one or more matching Resources.Modifier and TypeMethodDescriptionPathMatchingResourcePatternResolver.getResourceLoader()
Return theResourceLoader
that this pattern resolver works with.Modifier and TypeMethodDescriptionstatic ResourcePatternResolver
ResourcePatternUtils.getResourcePatternResolver
(ResourceLoader resourceLoader) Return a defaultResourcePatternResolver
for the givenResourceLoader
.ModifierConstructorDescriptionLocalizedResourceHelper
(ResourceLoader resourceLoader) Create a new LocalizedResourceHelper with the given ResourceLoader.PathMatchingResourcePatternResolver
(ResourceLoader resourceLoader) Create aPathMatchingResourcePatternResolver
with the suppliedResourceLoader
.PropertySourceProcessor
(ConfigurableEnvironment environment, ResourceLoader resourceLoader) -
Uses of ResourceLoader in org.springframework.core.type.classreading
Modifier and TypeMethodDescriptionfinal ResourceLoader
SimpleMetadataReaderFactory.getResourceLoader()
Return the ResourceLoader that this MetadataReaderFactory has been constructed with.ModifierConstructorDescriptionCachingMetadataReaderFactory
(ResourceLoader resourceLoader) Create a new CachingMetadataReaderFactory for the givenResourceLoader
, using a shared resource cache if supported or a local resource cache otherwise.SimpleMetadataReaderFactory
(ResourceLoader resourceLoader) Create a new SimpleMetadataReaderFactory for the given resource loader. -
Uses of ResourceLoader in org.springframework.jdbc.config
Modifier and TypeMethodDescriptionvoid
SortedResourcesFactoryBean.setResourceLoader
(ResourceLoader resourceLoader) ModifierConstructorDescriptionSortedResourcesFactoryBean
(ResourceLoader resourceLoader, List<String> locations) -
Uses of ResourceLoader in org.springframework.jdbc.datasource.embedded
ModifierConstructorDescriptionEmbeddedDatabaseBuilder
(ResourceLoader resourceLoader) Create a new embedded database builder with the givenResourceLoader
. -
Uses of ResourceLoader in org.springframework.mock.web
ModifierConstructorDescriptionMockServletContext
(String resourceBasePath, ResourceLoader resourceLoader) Create a newMockServletContext
using the supplied resource base path and resource loader.MockServletContext
(ResourceLoader resourceLoader) Create a newMockServletContext
, using the specifiedResourceLoader
and no base path. -
Uses of ResourceLoader in org.springframework.orm.hibernate5
Modifier and TypeMethodDescriptionLocalSessionFactoryBean.getResourceLoader()
Determine the SpringResourceLoader
to use for Hibernate metadata.Modifier and TypeMethodDescriptionvoid
LocalSessionFactoryBean.setResourceLoader
(ResourceLoader resourceLoader) Specify a SpringResourceLoader
to use for Hibernate metadata.ModifierConstructorDescriptionLocalSessionFactoryBuilder
(DataSource dataSource, ResourceLoader resourceLoader) Create a new LocalSessionFactoryBuilder for the given DataSource.LocalSessionFactoryBuilder
(DataSource dataSource, ResourceLoader resourceLoader, MetadataSources metadataSources) Create a new LocalSessionFactoryBuilder for the given DataSource. -
Uses of ResourceLoader in org.springframework.orm.jpa
Modifier and TypeMethodDescriptionvoid
LocalContainerEntityManagerFactoryBean.setResourceLoader
(ResourceLoader resourceLoader) -
Uses of ResourceLoader in org.springframework.orm.jpa.persistenceunit
Modifier and TypeMethodDescriptionvoid
DefaultPersistenceUnitManager.setResourceLoader
(ResourceLoader resourceLoader) ModifierConstructorDescriptionPersistenceManagedTypesScanner
(ResourceLoader resourceLoader) Create a newPersistenceManagedTypesScanner
for the given resource loader.PersistenceManagedTypesScanner
(ResourceLoader resourceLoader, ManagedClassNameFilter managedClassNameFilter) Create a newPersistenceManagedTypesScanner
for the given resource loader. -
Uses of ResourceLoader in org.springframework.scheduling.quartz
Modifier and TypeMethodDescriptionstatic ResourceLoader
SchedulerFactoryBean.getConfigTimeResourceLoader()
Return theResourceLoader
for the currently configured Quartz Scheduler, to be used byResourceLoaderClassLoadHelper
.Modifier and TypeMethodDescriptionvoid
SchedulerAccessor.setResourceLoader
(ResourceLoader resourceLoader) ModifierConstructorDescriptionResourceLoaderClassLoadHelper
(ResourceLoader resourceLoader) Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader. -
Uses of ResourceLoader in org.springframework.scripting.support
Modifier and TypeMethodDescriptionprotected ScriptSource
ScriptFactoryPostProcessor.convertToScriptSource
(String beanName, String scriptSourceLocator, ResourceLoader resourceLoader) Convert the given script source locator to a ScriptSource instance.void
ScriptFactoryPostProcessor.setResourceLoader
(ResourceLoader resourceLoader) -
Uses of ResourceLoader in org.springframework.test.context.support
Modifier and TypeMethodDescriptionstatic void
TestPropertySourceUtils.addPropertiesFilesToEnvironment
(ConfigurableEnvironment environment, ResourceLoader resourceLoader, String... locations) static void
TestPropertySourceUtils.addPropertySourcesToEnvironment
(ConfigurableEnvironment environment, ResourceLoader resourceLoader, List<PropertySourceDescriptor> descriptors) Add property sources for the givendescriptors
to the suppliedenvironment
. -
Uses of ResourceLoader in org.springframework.test.context.util
Modifier and TypeMethodDescriptionTestContextResourceUtils.convertToResourceList
(ResourceLoader resourceLoader, String... paths) Convert the supplied paths to a list ofResource
handles using the givenResourceLoader
.static Resource[]
TestContextResourceUtils.convertToResources
(ResourceLoader resourceLoader, String... paths) Convert the supplied paths to an array ofResource
handles using the givenResourceLoader
. -
Uses of ResourceLoader in org.springframework.ui.freemarker
Modifier and TypeMethodDescriptionprotected ResourceLoader
FreeMarkerConfigurationFactory.getResourceLoader()
Return theResourceLoader
to use for loading FreeMarker template files.Modifier and TypeMethodDescriptionvoid
FreeMarkerConfigurationFactory.setResourceLoader
(ResourceLoader resourceLoader) Set theResourceLoader
to use for loading FreeMarker template files.ModifierConstructorDescriptionSpringTemplateLoader
(ResourceLoader resourceLoader, String templateLoaderPath) Create a newSpringTemplateLoader
. -
Uses of ResourceLoader in org.springframework.web.context
Modifier and TypeInterfaceDescriptioninterface
Interface to be implemented by configurable web application contexts.interface
Interface to provide configuration for a web application. -
Uses of ResourceLoader in org.springframework.web.context.support
Modifier and TypeClassDescriptionclass
AbstractRefreshableApplicationContext
subclass which implements theConfigurableWebApplicationContext
interface for web environments.class
WebApplicationContext
implementation which accepts component classes as input — in particular@Configuration
classes, but also plain@Component
classes as well as JSR-330 compliant classes usingjakarta.inject
annotations.class
Subclass ofGenericApplicationContext
, suitable for web environments.class
WebApplicationContext
implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader
.class
ResourceLoader implementation that resolves paths as ServletContext resources, for use outside a WebApplicationContext (for example, in an HttpServletBean or GenericFilterBean subclass).class
ServletContext-aware subclass ofPathMatchingResourcePatternResolver
, able to find matching resources below the web application root directory viaServletContext.getResourcePaths(java.lang.String)
.class
StaticWebApplicationContext
implementation for testing.class
WebApplicationContext
implementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
.ModifierConstructorDescriptionServletContextResourcePatternResolver
(ResourceLoader resourceLoader) Create a new ServletContextResourcePatternResolver. -
Uses of ResourceLoader in org.springframework.web.reactive.config
ModifierConstructorDescriptionResourceHandlerRegistration
(ResourceLoader resourceLoader, String... pathPatterns) Create aResourceHandlerRegistration
instance.ResourceHandlerRegistry
(ResourceLoader resourceLoader) Create a new resource handler registry for the given resource loader (typically an application context). -
Uses of ResourceLoader in org.springframework.web.reactive.resource
Modifier and TypeMethodDescriptionvoid
ResourceWebHandler.setResourceLoader
(ResourceLoader resourceLoader) Provide the ResourceLoader to loadlocation values
with.