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.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.jca.context |
Integration package that allows for deploying a Spring application context
as a JCA 1.5 compliant RAR file.
|
org.springframework.test |
This package contains the legacy JUnit 3.8 class hierarchy, which as of Spring 3.0
has been deprecated in favor of using the listener-based Spring TestContext Framework.
|
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.support |
Support classes for the Spring TestContext Framework.
|
org.springframework.test.context.web |
Web support classes for the Spring TestContext Framework.
|
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.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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ApplicationContextInitializer<C extends ConfigurableApplicationContext>
Callback interface for initializing a Spring
ConfigurableApplicationContext
prior to being refreshed. |
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 | 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 |
---|---|
protected Set<ConfigurableApplicationContext> |
LiveBeansView.findApplicationContexts()
Find all applicable ApplicationContexts for the current application.
|
Modifier and Type | Method and Description |
---|---|
protected String |
LiveBeansView.generateJson(Set<ConfigurableApplicationContext> contexts)
Actually generate a JSON snapshot of the beans in the given ApplicationContexts.
|
Modifier and Type | Class and Description |
---|---|
class |
ResourceAdapterApplicationContext
ApplicationContext implementation
for a JCA ResourceAdapter. |
Modifier and Type | Method and Description |
---|---|
protected ConfigurableApplicationContext |
SpringContextResourceAdapter.createApplicationContext(javax.resource.spi.BootstrapContext bootstrapContext)
Build a Spring ApplicationContext for the given JCA BootstrapContext.
|
Modifier and Type | Field and Description |
---|---|
protected ConfigurableApplicationContext |
AbstractSingleSpringContextTests.applicationContext
Deprecated.
Application context this test will run against
|
Modifier and Type | Method and Description |
---|---|
protected ConfigurableApplicationContext |
AbstractSingleSpringContextTests.createApplicationContext(String[] locations)
Deprecated.
Create a Spring
ConfigurableApplicationContext for use by this test. |
ConfigurableApplicationContext |
AbstractSingleSpringContextTests.getApplicationContext()
Deprecated.
Return the ApplicationContext that this base class manages; may be
null . |
protected ConfigurableApplicationContext |
AbstractSpringContextTests.getContext(Object key)
Deprecated.
Obtain an ApplicationContext for the given key, potentially cached.
|
protected ConfigurableApplicationContext |
AbstractSingleSpringContextTests.loadContext(Object key)
Deprecated.
This implementation assumes a key of type String array and loads a
context from the given locations.
|
protected abstract ConfigurableApplicationContext |
AbstractSpringContextTests.loadContext(Object key)
Deprecated.
Load a new ApplicationContext for the given key.
|
protected ConfigurableApplicationContext |
AbstractSingleSpringContextTests.loadContextLocations(String[] locations)
Deprecated.
Load a Spring ApplicationContext from the given config locations.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractSpringContextTests.addContext(Object key,
ConfigurableApplicationContext context)
Deprecated.
Explicitly add an ApplicationContext instance under a given key.
|
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> |
MergedContextConfiguration.getContextInitializerClasses()
Get the merged
ApplicationContextInitializer classes for the
test class. |
Constructor and Description |
---|
MergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
ContextLoader contextLoader)
Create a new
MergedContextConfiguration instance for the
supplied test class, resource locations, annotated classes, context
initializers, active profiles, and ContextLoader . |
MergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
MergedContextConfiguration instance for the
supplied test class, resource locations, annotated classes, context
initializers, active profiles, ContextLoader , and parent
configuration. |
Modifier and Type | Method and Description |
---|---|
ConfigurableApplicationContext |
AbstractGenericContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Load a Spring ApplicationContext from the supplied
MergedContextConfiguration . |
ConfigurableApplicationContext |
AbstractGenericContextLoader.loadContext(String... locations)
Load a Spring ApplicationContext from the supplied
locations . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractContextLoader.prepareContext(ConfigurableApplicationContext context,
MergedContextConfiguration mergedConfig)
Prepare the
ConfigurableApplicationContext created by this
SmartContextLoader before bean definitions are read. |
Modifier and Type | Method and Description |
---|---|
ConfigurableApplicationContext |
AbstractGenericWebContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Load a Spring
WebApplicationContext from the supplied
MergedContextConfiguration . |
Constructor and Description |
---|
WebMergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
String resourceBasePath,
ContextLoader contextLoader)
|
WebMergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
String resourceBasePath,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
WebMergedContextConfiguration instance for the
supplied test class, resource locations, annotated classes, context
initializers, active profiles, resource base path, and ContextLoader . |
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurableWebApplicationContext
Interface to be implemented by configurable web application contexts.
|
Modifier and Type | Method and Description |
---|---|
protected List<Class<ApplicationContextInitializer<ConfigurableApplicationContext>>> |
ContextLoader.determineContextInitializerClasses(javax.servlet.ServletContext servletContext)
Return the
ApplicationContextInitializer implementation classes to use
if any have been specified by ContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM . |
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 Set<ConfigurableApplicationContext> |
ServletContextLiveBeansView.findApplicationContexts() |
Modifier and Type | Method and Description |
---|---|
protected void |
FrameworkPortlet.postProcessPortletApplicationContext(ConfigurableApplicationContext pac)
Post-process the given Portlet ApplicationContext before it is refreshed
and activated as context for this portlet.
|
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 |
---|---|
protected void |
FrameworkServlet.applyInitializers(ConfigurableApplicationContext wac)
Delegate the WebApplicationContext before it is refreshed to any
ApplicationContextInitializer instances specified by the
"contextInitializerClasses" servlet init-param. |
Copyright © 2015. All rights reserved.