Package | Description |
---|---|
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.access |
Helper infrastructure to locate and access shared application contexts.
|
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.event |
Support classes for application events, like standard context events.
|
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.jca.context |
Integration package that allows for deploying a Spring application context
as a JCA 1.5 compliant RAR file.
|
org.springframework.remoting.jaxrpc |
Remoting classes for Web Services via JAX-RPC.
|
org.springframework.scheduling.annotation |
JDK 1.5+ annotation for asynchronous method execution.
|
org.springframework.scheduling.config |
Support package for declarative scheduling configuration,
with XML schema being the primary configuration format.
|
org.springframework.test.annotation |
Support classes for annotation-driven tests.
|
org.springframework.test.context |
This package contains the Spring TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
|
org.springframework.test.context.junit38 |
Support classes for ApplicationContext-based and transactional
tests run with JUnit 3.8 and the Spring TestContext Framework.
|
org.springframework.test.context.junit4 |
Support classes for ApplicationContext-based and transactional
tests run with JUnit 4.5+ and the Spring TestContext Framework.
|
org.springframework.test.context.support |
Support classes for the Spring TestContext Framework.
|
org.springframework.test.context.testng |
Support classes for ApplicationContext-based and transactional
tests run with TestNG and the Spring TestContext Framework.
|
org.springframework.test.context.web |
Web support classes for the Spring TestContext Framework.
|
org.springframework.ui.context.support |
Classes supporting the org.springframework.ui.context package.
|
org.springframework.validation.beanvalidation |
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator 4.0) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
|
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.method |
Common infrastructure for handler method processing, as used by
Spring MVC's
org.springframework.web.servlet.mvc.method package. |
org.springframework.web.portlet |
Provides JSR-168 portlets that integrate with the application context
infrastructure, and the core interfaces and classes for the Portlet
variant of Spring's web MVC framework.
|
org.springframework.web.portlet.context |
Support for Spring's application context concept in a portlet environment,
including ApplicationContext implementations and various utility classes.
|
org.springframework.web.servlet |
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
org.springframework.web.servlet.view.tiles |
Support classes for the integration of
Tiles
(included in Struts) as Spring web view technology.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurableApplicationContext
SPI interface to be implemented by most if not all application contexts.
|
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
ApplicationContext.getParent()
Return the parent context, or
null if there is no parent
and this is the root of the context hierarchy. |
Modifier and Type | Method and Description |
---|---|
void |
ApplicationContextAware.setApplicationContext(ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
void |
ConfigurableApplicationContext.setParent(ApplicationContext parent)
Set the parent of this application context.
|
Modifier and Type | Method and Description |
---|---|
protected ApplicationContext |
ContextJndiBeanFactoryLocator.createApplicationContext(String[] resources)
Create the ApplicationContext instance, given an array of class path resource
Strings which should be combined
|
Constructor and Description |
---|
ContextBeanFactoryReference(ApplicationContext applicationContext)
Create a new ContextBeanFactoryReference for the given context.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationConfigApplicationContext
Standalone application context, accepting annotated 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 |
---|---|
ApplicationContext |
ApplicationContextEvent.getApplicationContext()
Get the
ApplicationContext that the event was raised for. |
Constructor and Description |
---|
ApplicationContextEvent(ApplicationContext source)
Create a new ContextStartedEvent.
|
ContextClosedEvent(ApplicationContext source)
Creates a new ContextClosedEvent.
|
ContextRefreshedEvent(ApplicationContext source)
Create a new ContextRefreshedEvent.
|
ContextStartedEvent(ApplicationContext source)
Create a new ContextStartedEvent.
|
ContextStoppedEvent(ApplicationContext source)
Create a new ContextStoppedEvent.
|
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 |
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 |
---|---|
ApplicationContext |
ApplicationObjectSupport.getApplicationContext()
Return the ApplicationContext that this object is associated with.
|
ApplicationContext |
AbstractApplicationContext.getParent()
Return the parent context, or
null if there is no parent
(that is, this context is the root of the context hierarchy). |
Modifier and Type | Method and Description |
---|---|
protected void |
ApplicationObjectSupport.initApplicationContext(ApplicationContext context)
Subclasses can override this for custom initialization behavior.
|
void |
ApplicationObjectSupport.setApplicationContext(ApplicationContext context) |
void |
LiveBeansView.setApplicationContext(ApplicationContext applicationContext) |
void |
AbstractApplicationContext.setParent(ApplicationContext parent)
Set the parent of this application context.
|
void |
GenericApplicationContext.setParent(ApplicationContext parent)
Set the parent of this application context, also setting
the parent of the internal BeanFactory accordingly.
|
Constructor and Description |
---|
AbstractApplicationContext(ApplicationContext parent)
Create a new AbstractApplicationContext with the given parent context.
|
AbstractRefreshableApplicationContext(ApplicationContext parent)
Create a new AbstractRefreshableApplicationContext with the given parent context.
|
AbstractRefreshableConfigApplicationContext(ApplicationContext parent)
Create a new AbstractRefreshableConfigApplicationContext with the given parent context.
|
AbstractXmlApplicationContext(ApplicationContext parent)
Create a new AbstractXmlApplicationContext with the given parent context.
|
ClassPathXmlApplicationContext(ApplicationContext parent)
Create a new ClassPathXmlApplicationContext for bean-style configuration.
|
ClassPathXmlApplicationContext(String[] configLocations,
ApplicationContext parent)
Create a new ClassPathXmlApplicationContext with the given parent,
loading the definitions from the given XML files and automatically
refreshing the context.
|
ClassPathXmlApplicationContext(String[] configLocations,
boolean refresh,
ApplicationContext parent)
Create a new ClassPathXmlApplicationContext with the given parent,
loading the definitions from the given XML files.
|
ClassPathXmlApplicationContext(String[] paths,
Class clazz,
ApplicationContext parent)
Create a new ClassPathXmlApplicationContext with the given parent,
loading the definitions from the given XML files and automatically
refreshing the context.
|
FileSystemXmlApplicationContext(ApplicationContext parent)
Create a new FileSystemXmlApplicationContext for bean-style configuration.
|
FileSystemXmlApplicationContext(String[] configLocations,
ApplicationContext parent)
Create a new FileSystemXmlApplicationContext with the given parent,
loading the definitions from the given XML files and automatically
refreshing the context.
|
FileSystemXmlApplicationContext(String[] configLocations,
boolean refresh,
ApplicationContext parent)
Create a new FileSystemXmlApplicationContext with the given parent,
loading the definitions from the given XML files.
|
GenericApplicationContext(ApplicationContext parent)
Create a new GenericApplicationContext with the given parent.
|
GenericApplicationContext(DefaultListableBeanFactory beanFactory,
ApplicationContext parent)
Create a new GenericApplicationContext with the given DefaultListableBeanFactory.
|
StaticApplicationContext(ApplicationContext parent)
Create a new StaticApplicationContext with the given parent.
|
Modifier and Type | Class and Description |
---|---|
class |
ResourceAdapterApplicationContext
ApplicationContext implementation
for a JCA ResourceAdapter. |
Modifier and Type | Method and Description |
---|---|
protected ApplicationContext |
ServletEndpointSupport.getApplicationContext()
Deprecated.
Return the current Spring ApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
void |
ScheduledAnnotationBeanPostProcessor.setApplicationContext(ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
void |
ContextLifecycleScheduledTaskRegistrar.setApplicationContext(ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractAnnotationAwareTransactionalTests.findUniqueProfileValueSourceFromContext(ApplicationContext applicationContext)
Deprecated.
Use
@ProfileValueSourceConfiguration instead. |
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
TestContext.getApplicationContext()
Get the
application context for this test
context, possibly cached. |
ApplicationContext |
MergedContextConfiguration.getParentApplicationContext()
Get the parent
ApplicationContext for the context defined by this
MergedContextConfiguration from the context cache. |
ApplicationContext |
SmartContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Loads a new
context based on the supplied
merged context configuration ,
configures the context, and finally returns the context in a fully
refreshed state. |
ApplicationContext |
CacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedContextConfiguration)
Load the
application context for the supplied
merged context configuration. |
ApplicationContext |
ContextLoader.loadContext(String... locations)
Loads a new
context based on the supplied
locations , configures the context, and finally returns
the context in fully refreshed state. |
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
AbstractJUnit38SpringContextTests.applicationContext
Deprecated.
The
ApplicationContext that was injected into this test instance
via AbstractJUnit38SpringContextTests.setApplicationContext(ApplicationContext) . |
Modifier and Type | Method and Description |
---|---|
void |
AbstractJUnit38SpringContextTests.setApplicationContext(ApplicationContext applicationContext)
Deprecated.
Sets the
ApplicationContext to be used by this test instance,
provided via ApplicationContextAware semantics. |
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
AbstractJUnit4SpringContextTests.applicationContext
The
ApplicationContext that was injected into this test instance
via AbstractJUnit4SpringContextTests.setApplicationContext(ApplicationContext) . |
Modifier and Type | Method and Description |
---|---|
void |
AbstractJUnit4SpringContextTests.setApplicationContext(ApplicationContext applicationContext)
Set the
ApplicationContext to be used by this test instance,
provided via ApplicationContextAware semantics. |
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
AbstractDelegatingSmartContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Delegates to an appropriate candidate
SmartContextLoader to load
an ApplicationContext . |
ApplicationContext |
AbstractDelegatingSmartContextLoader.loadContext(String... locations)
AbstractDelegatingSmartContextLoader does not support the
ContextLoader.loadContext(String...) method. |
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
AbstractTestNGSpringContextTests.applicationContext
The
ApplicationContext that was injected into this test instance
via AbstractTestNGSpringContextTests.setApplicationContext(ApplicationContext) . |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTestNGSpringContextTests.setApplicationContext(ApplicationContext applicationContext)
Set the
ApplicationContext to be used by this test instance,
provided via ApplicationContextAware semantics. |
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
AbstractGenericWebContextLoader.loadContext(String... locations)
AbstractGenericWebContextLoader should be used as a
SmartContextLoader ,
not as a legacy ContextLoader . |
Modifier and Type | Method and Description |
---|---|
static ThemeSource |
UiApplicationContextUtils.initThemeSource(ApplicationContext context)
Initialize the ThemeSource for the given application context,
autodetecting a bean with the name "themeSource".
|
Modifier and Type | Method and Description |
---|---|
void |
LocalValidatorFactoryBean.setApplicationContext(ApplicationContext applicationContext) |
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 | Method and Description |
---|---|
protected ApplicationContext |
ContextLoader.loadParentContext(javax.servlet.ServletContext servletContext)
Template method with default implementation (which may be overridden by a
subclass), to load or obtain an ApplicationContext instance which will be
used as the parent context of the root WebApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
ContextLoader.createWebApplicationContext(javax.servlet.ServletContext sc,
ApplicationContext parent)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractRefreshableWebApplicationContext
AbstractRefreshableApplicationContext
subclass which implements the
ConfigurableWebApplicationContext
interface for web environments. |
class |
AnnotationConfigWebApplicationContext
WebApplicationContext
implementation which accepts annotated classes as input - in particular
@Configuration -annotated
classes, but also plain @Component
classes and JSR-330 compliant classes using javax.inject annotations. |
class |
GenericWebApplicationContext
Subclass of
GenericApplicationContext , suitable for web environments. |
class |
StaticWebApplicationContext
Static
WebApplicationContext
implementation for testing. |
class |
XmlWebApplicationContext
WebApplicationContext implementation
which takes its configuration from XML documents, understood by an
XmlBeanDefinitionReader . |
Modifier and Type | Method and Description |
---|---|
protected void |
WebApplicationObjectSupport.initApplicationContext(ApplicationContext context)
Calls
WebApplicationObjectSupport.initServletContext(javax.servlet.ServletContext) if the
given ApplicationContext is a WebApplicationContext . |
Modifier and Type | Method and Description |
---|---|
static List<ControllerAdviceBean> |
ControllerAdviceBean.findAnnotatedBeans(ApplicationContext applicationContext)
Find the names of beans annotated with
@ControllerAdvice in the given
ApplicationContext and wrap them as
ControllerAdviceBean instances. |
Modifier and Type | Method and Description |
---|---|
protected ApplicationContext |
FrameworkPortlet.createPortletApplicationContext(ApplicationContext parent)
Instantiate the Portlet ApplicationContext for this portlet, either a default
XmlPortletApplicationContext or a custom context class if set.
|
ApplicationContext |
FrameworkPortlet.getPortletApplicationContext()
Return this portlet's ApplicationContext.
|
protected ApplicationContext |
FrameworkPortlet.initPortletApplicationContext()
Initialize and publish the Portlet ApplicationContext for this portlet.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
DispatcherPortlet.createDefaultStrategy(ApplicationContext context,
Class<?> clazz)
Create a default strategy.
|
protected ApplicationContext |
FrameworkPortlet.createPortletApplicationContext(ApplicationContext parent)
Instantiate the Portlet ApplicationContext for this portlet, either a default
XmlPortletApplicationContext or a custom context class if set.
|
protected <T> List<T> |
DispatcherPortlet.getDefaultStrategies(ApplicationContext context,
Class<T> strategyInterface)
Create a List of default strategy objects for the given strategy interface.
|
protected <T> T |
DispatcherPortlet.getDefaultStrategy(ApplicationContext context,
Class<T> strategyInterface)
Return the default strategy object for the given strategy interface.
|
protected void |
DispatcherPortlet.initStrategies(ApplicationContext context)
Refresh the strategy objects that this portlet uses.
|
void |
DispatcherPortlet.onRefresh(ApplicationContext context)
This implementation calls
DispatcherPortlet.initStrategies(org.springframework.context.ApplicationContext) . |
protected void |
FrameworkPortlet.onRefresh(ApplicationContext context)
Template method which can be overridden to add portlet-specific refresh work.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurablePortletApplicationContext
Interface to be implemented by configurable portlet application contexts.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractRefreshablePortletApplicationContext
AbstractRefreshableApplicationContext
subclass which implements the ConfigurablePortletApplicationContext
interface for portlet environments. |
class |
StaticPortletApplicationContext
Static Portlet-based
ApplicationContext
implementation for testing. |
class |
XmlPortletApplicationContext
Portlet-based
WebApplicationContext
implementation which takes its configuration from XML documents, understood
by an XmlBeanDefinitionReader . |
Modifier and Type | Method and Description |
---|---|
static ApplicationContext |
PortletApplicationContextUtils.getRequiredWebApplicationContext(javax.portlet.PortletContext pc)
Find the root
WebApplicationContext for this web app, typically
loaded via ContextLoaderListener . |
static ApplicationContext |
PortletApplicationContextUtils.getWebApplicationContext(javax.portlet.PortletContext pc)
Find the root
WebApplicationContext for this web app, typically
loaded via ContextLoaderListener . |
Modifier and Type | Method and Description |
---|---|
void |
StaticPortletApplicationContext.setParent(ApplicationContext parent)
Set the parent of this application context, also setting
the parent of the internal BeanFactory accordingly.
|
void |
AbstractRefreshablePortletApplicationContext.setParent(ApplicationContext parent)
Set the parent of this application context.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
DispatcherServlet.createDefaultStrategy(ApplicationContext context,
Class<?> clazz)
Create a default strategy.
|
protected WebApplicationContext |
FrameworkServlet.createWebApplicationContext(ApplicationContext parent)
Instantiate the WebApplicationContext for this servlet, either a default
XmlWebApplicationContext
or a custom context class , if set. |
protected <T> List<T> |
DispatcherServlet.getDefaultStrategies(ApplicationContext context,
Class<T> strategyInterface)
Create a List of default strategy objects for the given strategy interface.
|
protected <T> T |
DispatcherServlet.getDefaultStrategy(ApplicationContext context,
Class<T> strategyInterface)
Return the default strategy object for the given strategy interface.
|
protected void |
DispatcherServlet.initStrategies(ApplicationContext context)
Initialize the strategy objects that this servlet uses.
|
protected void |
DispatcherServlet.onRefresh(ApplicationContext context)
This implementation calls
DispatcherServlet.initStrategies(org.springframework.context.ApplicationContext) . |
protected void |
FrameworkServlet.onRefresh(ApplicationContext context)
Template method which can be overridden to add servlet-specific refresh work.
|
Modifier and Type | Method and Description |
---|---|
void |
WebMvcConfigurationSupport.setApplicationContext(ApplicationContext applicationContext)
Set the Spring
ApplicationContext , e.g. |
Constructor and Description |
---|
ResourceHandlerRegistry(ApplicationContext applicationContext,
javax.servlet.ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
ExceptionHandlerExceptionResolver.getApplicationContext() |
Modifier and Type | Method and Description |
---|---|
void |
ExceptionHandlerExceptionResolver.setApplicationContext(ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
protected ApplicationContext |
ComponentControllerSupport.getApplicationContext()
Deprecated.
Return the current Spring ApplicationContext.
|
Copyright © 2015. All rights reserved.