Package | Description |
---|---|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
org.springframework.beans.factory.xml |
Contains an abstract XML-based
BeanFactory implementation,
including a standard "spring-beans" XSD. |
org.springframework.beans.support |
Classes supporting the org.springframework.beans package,
such as utility classes for sorting and holding lists of beans.
|
org.springframework.context |
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.
|
org.springframework.context.annotation |
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
|
org.springframework.context.support |
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
|
org.springframework.core.io |
Generic abstraction for (file-based) resources, used throughout the framework.
|
org.springframework.core.io.support |
Support classes for Spring's resource abstraction.
|
org.springframework.core.type.classreading |
Support classes for reading annotation and class-level metadata.
|
org.springframework.jca.context |
Integration package that allows for deploying a Spring application context
as a JCA 1.7 compliant RAR file.
|
org.springframework.jdbc.config |
Defines the Spring JDBC configuration namespace.
|
org.springframework.jdbc.datasource.embedded |
Provides extensible support for creating embedded database instances.
|
org.springframework.mock.web |
A comprehensive set of Servlet API 4.0 mock objects, targeted at usage with
Spring's Web MVC framework.
|
org.springframework.orm.hibernate5 |
Package providing integration of
Hibernate 5.x
with Spring concepts.
|
org.springframework.orm.jpa |
Package providing integration of JPA (Java Persistence API) with Spring concepts.
|
org.springframework.orm.jpa.persistenceunit |
Internal support for managing JPA persistence units.
|
org.springframework.scheduling.quartz |
Support classes for the open source scheduler
Quartz,
allowing to set up Quartz Schedulers, JobDetails and
Triggers as beans in a Spring context.
|
org.springframework.scripting.support |
Support classes for Spring's scripting package.
|
org.springframework.test.context.support |
Support classes for the Spring TestContext Framework.
|
org.springframework.test.context.util |
Common utilities used within the Spring TestContext Framework.
|
org.springframework.ui.freemarker |
Support classes for setting up
FreeMarker
within a Spring application context.
|
org.springframework.web.context |
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
|
org.springframework.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
org.springframework.web.reactive.config |
Spring WebFlux configuration infrastructure.
|
org.springframework.web.reactive.resource |
Support classes for serving static resources.
|
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
AbstractBeanDefinitionReader.getResourceLoader() |
ResourceLoader |
BeanDefinitionReader.getResourceLoader()
Return the
ResourceLoader to use for resource locations. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractBeanDefinitionReader.setResourceLoader(ResourceLoader resourceLoader)
Set the ResourceLoader to use for resource locations.
|
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
XmlReaderContext.getResourceLoader()
Return the resource loader to use, if any.
|
Constructor and Description |
---|
ResourceEntityResolver(ResourceLoader resourceLoader)
Create a ResourceEntityResolver for the specified ResourceLoader
(usually, an ApplicationContext).
|
Constructor and Description |
---|
ResourceEditorRegistrar(ResourceLoader resourceLoader,
PropertyResolver propertyResolver)
Create a new ResourceEditorRegistrar for the given
ResourceLoader
and PropertyResolver . |
Modifier and Type | Interface and Description |
---|---|
interface |
ApplicationContext
Central interface to provide configuration for an application.
|
interface |
ConfigurableApplicationContext
SPI interface to be implemented by most if not all application contexts.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceLoaderAware.setResourceLoader(ResourceLoader resourceLoader)
Set the ResourceLoader that this object runs in.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationConfigApplicationContext
Standalone application context, accepting component classes as input —
in particular
@Configuration -annotated classes, but also plain
@Component types and JSR-330 compliant
classes using javax.inject annotations. |
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
ClassPathScanningCandidateComponentProvider.getResourceLoader()
Return the ResourceLoader that this component provider uses.
|
ResourceLoader |
ConditionContext.getResourceLoader()
Return the
ResourceLoader currently being used. |
Modifier and Type | Method and Description |
---|---|
static List<TypeFilter> |
TypeFilterUtils.createTypeFiltersFor(AnnotationAttributes filterAttributes,
Environment environment,
ResourceLoader resourceLoader,
BeanDefinitionRegistry registry)
Create type filters from the supplied
AnnotationAttributes , such as those sourced from
ComponentScan.includeFilters() or ComponentScan.excludeFilters() . |
void |
ConfigurationClassPostProcessor.setResourceLoader(ResourceLoader resourceLoader) |
void |
ClassPathScanningCandidateComponentProvider.setResourceLoader(ResourceLoader resourceLoader)
Set the
ResourceLoader to use for resource locations. |
Constructor and Description |
---|
ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry,
boolean useDefaultFilters,
Environment environment,
ResourceLoader resourceLoader)
Create a new
ClassPathBeanDefinitionScanner for the given bean factory and
using the given Environment when evaluating bean definition profile metadata. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractApplicationContext
Abstract implementation of the
ApplicationContext
interface. |
class |
AbstractRefreshableApplicationContext
Base class for
ApplicationContext
implementations which are supposed to support multiple calls to AbstractApplicationContext.refresh() ,
creating a new internal bean factory instance every time. |
class |
AbstractRefreshableConfigApplicationContext
AbstractRefreshableApplicationContext subclass that adds common handling
of specified config locations. |
class |
AbstractXmlApplicationContext
Convenient base class for
ApplicationContext
implementations, drawing configuration from XML documents containing bean definitions
understood by an XmlBeanDefinitionReader . |
class |
ClassPathXmlApplicationContext
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 |
FileSystemXmlApplicationContext
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 |
GenericApplicationContext
Generic ApplicationContext implementation that holds a single internal
DefaultListableBeanFactory
instance and does not assume a specific bean definition format. |
class |
GenericGroovyApplicationContext
An
ApplicationContext implementation that extends
GenericApplicationContext and implements GroovyObject such that beans
can be retrieved with the dot de-reference syntax instead of using AbstractApplicationContext.getBean(java.lang.String) . |
class |
GenericXmlApplicationContext
Convenient application context with built-in XML support.
|
class |
StaticApplicationContext
ApplicationContext implementation
which supports programmatic registration of beans and messages,
rather than reading bean definitions from external configuration sources. |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassRelativeResourceLoader
ResourceLoader implementation that interprets plain resource paths
as relative to a given java.lang.Class . |
class |
DefaultResourceLoader
Default implementation of the
ResourceLoader interface. |
class |
FileSystemResourceLoader
ResourceLoader implementation that resolves plain paths as
file system resources rather than as class path resources
(the latter is DefaultResourceLoader 's default strategy). |
Modifier and Type | Method and Description |
---|---|
Resource |
ProtocolResolver.resolve(String location,
ResourceLoader resourceLoader)
Resolve the given location against the given resource loader
if this implementation's protocol matches.
|
Constructor and Description |
---|
ResourceEditor(ResourceLoader resourceLoader,
PropertyResolver propertyResolver)
Create a new instance of the
ResourceEditor class
using the given ResourceLoader and PropertyResolver . |
ResourceEditor(ResourceLoader resourceLoader,
PropertyResolver propertyResolver,
boolean ignoreUnresolvablePlaceholders)
Create a new instance of the
ResourceEditor class
using the given ResourceLoader . |
Modifier and Type | Interface and Description |
---|---|
interface |
ResourcePatternResolver
Strategy interface for resolving a location pattern (for example,
an Ant-style path pattern) into
Resource objects. |
Modifier and Type | Class and Description |
---|---|
class |
PathMatchingResourcePatternResolver
A
ResourcePatternResolver implementation that is able to resolve a
specified resource location path into one or more matching Resources. |
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
PathMatchingResourcePatternResolver.getResourceLoader()
Return the ResourceLoader that this pattern resolver works with.
|
Modifier and Type | Method and Description |
---|---|
static ResourcePatternResolver |
ResourcePatternUtils.getResourcePatternResolver(ResourceLoader resourceLoader)
Return a default
ResourcePatternResolver for the given ResourceLoader . |
Constructor and Description |
---|
LocalizedResourceHelper(ResourceLoader resourceLoader)
Create a new LocalizedResourceHelper with the given ResourceLoader.
|
PathMatchingResourcePatternResolver(ResourceLoader resourceLoader)
Create a new PathMatchingResourcePatternResolver.
|
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
SimpleMetadataReaderFactory.getResourceLoader()
Return the ResourceLoader that this MetadataReaderFactory has been
constructed with.
|
Constructor and Description |
---|
CachingMetadataReaderFactory(ResourceLoader resourceLoader)
Create a new CachingMetadataReaderFactory for the given
ResourceLoader ,
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ResourceAdapterApplicationContext
ApplicationContext implementation
for a JCA ResourceAdapter. |
Modifier and Type | Method and Description |
---|---|
void |
SortedResourcesFactoryBean.setResourceLoader(ResourceLoader resourceLoader) |
Constructor and Description |
---|
SortedResourcesFactoryBean(ResourceLoader resourceLoader,
List<String> locations) |
Constructor and Description |
---|
EmbeddedDatabaseBuilder(ResourceLoader resourceLoader)
Create a new embedded database builder with the given
ResourceLoader . |
Constructor and Description |
---|
MockServletContext(ResourceLoader resourceLoader)
Create a new
MockServletContext , using the specified ResourceLoader
and no base path. |
MockServletContext(String resourceBasePath,
ResourceLoader resourceLoader)
Create a new
MockServletContext using the supplied resource base
path and resource loader. |
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
LocalSessionFactoryBean.getResourceLoader()
Determine the Spring
ResourceLoader to use for Hibernate metadata. |
Modifier and Type | Method and Description |
---|---|
void |
LocalSessionFactoryBean.setResourceLoader(ResourceLoader resourceLoader)
Specify a Spring
ResourceLoader to use for Hibernate metadata. |
Constructor and Description |
---|
LocalSessionFactoryBuilder(DataSource dataSource,
ResourceLoader resourceLoader)
Create a new LocalSessionFactoryBuilder for the given DataSource.
|
LocalSessionFactoryBuilder(DataSource dataSource,
ResourceLoader resourceLoader,
org.hibernate.boot.MetadataSources metadataSources)
Create a new LocalSessionFactoryBuilder for the given DataSource.
|
Modifier and Type | Method and Description |
---|---|
void |
LocalContainerEntityManagerFactoryBean.setResourceLoader(ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultPersistenceUnitManager.setResourceLoader(ResourceLoader resourceLoader) |
Modifier and Type | Field and Description |
---|---|
protected ResourceLoader |
SchedulerAccessor.resourceLoader |
Modifier and Type | Method and Description |
---|---|
static ResourceLoader |
SchedulerFactoryBean.getConfigTimeResourceLoader()
Return the
ResourceLoader for the currently configured Quartz Scheduler,
to be used by ResourceLoaderClassLoadHelper . |
Modifier and Type | Method and Description |
---|---|
void |
SchedulerAccessor.setResourceLoader(ResourceLoader resourceLoader) |
Constructor and Description |
---|
ResourceLoaderClassLoadHelper(ResourceLoader resourceLoader)
Create a new ResourceLoaderClassLoadHelper for the given ResourceLoader.
|
Modifier and Type | Method and Description |
---|---|
protected ScriptSource |
ScriptFactoryPostProcessor.convertToScriptSource(String beanName,
String scriptSourceLocator,
ResourceLoader resourceLoader)
Convert the given script source locator to a ScriptSource instance.
|
void |
ScriptFactoryPostProcessor.setResourceLoader(ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
static void |
TestPropertySourceUtils.addPropertiesFilesToEnvironment(ConfigurableEnvironment environment,
ResourceLoader resourceLoader,
String... locations)
|
Modifier and Type | Method and Description |
---|---|
static List<Resource> |
TestContextResourceUtils.convertToResourceList(ResourceLoader resourceLoader,
String... paths)
Convert the supplied paths to a list of
Resource handles using
the given ResourceLoader . |
static Resource[] |
TestContextResourceUtils.convertToResources(ResourceLoader resourceLoader,
String... paths)
Convert the supplied paths to an array of
Resource handles using
the given ResourceLoader . |
Modifier and Type | Method and Description |
---|---|
protected ResourceLoader |
FreeMarkerConfigurationFactory.getResourceLoader()
Return the Spring ResourceLoader to use for loading FreeMarker template files.
|
Modifier and Type | Method and Description |
---|---|
void |
FreeMarkerConfigurationFactory.setResourceLoader(ResourceLoader resourceLoader)
Set the Spring ResourceLoader to use for loading FreeMarker template files.
|
Constructor and Description |
---|
SpringTemplateLoader(ResourceLoader resourceLoader,
String templateLoaderPath)
Create a new SpringTemplateLoader.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurableWebApplicationContext
Interface to be implemented by configurable web application contexts.
|
interface |
WebApplicationContext
Interface to provide configuration for a web application.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractRefreshableWebApplicationContext
AbstractRefreshableApplicationContext
subclass which implements the
ConfigurableWebApplicationContext
interface for web environments. |
class |
AnnotationConfigWebApplicationContext
WebApplicationContext
implementation which accepts component classes as input — in particular
@Configuration
classes, but also plain @Component
classes as well as JSR-330 compliant classes using javax.inject annotations. |
class |
GenericWebApplicationContext
Subclass of
GenericApplicationContext , suitable for web environments. |
class |
GroovyWebApplicationContext
WebApplicationContext implementation which takes
its configuration from Groovy bean definition scripts and/or XML files, as understood by
a GroovyBeanDefinitionReader . |
class |
ServletContextResourceLoader
ResourceLoader implementation that resolves paths as ServletContext
resources, for use outside a WebApplicationContext (for example,
in an HttpServletBean or GenericFilterBean subclass).
|
class |
ServletContextResourcePatternResolver
ServletContext-aware subclass of
PathMatchingResourcePatternResolver ,
able to find matching resources below the web application root directory
via ServletContext.getResourcePaths(java.lang.String) . |
class |
StaticWebApplicationContext
Static
WebApplicationContext
implementation for testing. |
class |
XmlWebApplicationContext
WebApplicationContext implementation
which takes its configuration from XML documents, understood by an
XmlBeanDefinitionReader . |
Constructor and Description |
---|
ServletContextResourcePatternResolver(ResourceLoader resourceLoader)
Create a new ServletContextResourcePatternResolver.
|
Constructor and Description |
---|
ResourceHandlerRegistration(ResourceLoader resourceLoader,
String... pathPatterns)
Create a
ResourceHandlerRegistration instance. |
ResourceHandlerRegistry(ResourceLoader resourceLoader)
Create a new resource handler registry for the given resource loader
(typically an application context).
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceWebHandler.setResourceLoader(ResourceLoader resourceLoader)
Provide the ResourceLoader to load
location values with. |