Uses of Class
org.springframework.context.support.GenericApplicationContext
Package
Description
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
AOT support for application contexts.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Support classes for the Spring TestContext Framework.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.-
Uses of GenericApplicationContext 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. -
Uses of GenericApplicationContext in org.springframework.context.aot
Modifier and TypeMethodDescriptionprotected abstract GenericApplicationContext
ContextAotProcessor.prepareApplicationContext
(Class<?> applicationClass) Prepare theGenericApplicationContext
for the specified application entry point to be used against anApplicationContextAotGenerator
.Modifier and TypeMethodDescriptionprotected org.springframework.javapoet.ClassName
ContextAotProcessor.performAotProcessing
(GenericApplicationContext applicationContext) Perform ahead-of-time processing of the specified context.org.springframework.javapoet.ClassName
ApplicationContextAotGenerator.processAheadOfTime
(GenericApplicationContext applicationContext, GenerationContext generationContext) Process the specifiedGenericApplicationContext
ahead-of-time using the specifiedGenerationContext
. -
Uses of GenericApplicationContext in org.springframework.context.support
Modifier and TypeClassDescriptionclass
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. -
Uses of GenericApplicationContext in org.springframework.test.context.support
Modifier and TypeMethodDescriptionprotected GenericApplicationContext
AbstractGenericContextLoader.createContext()
Factory method for creating theGenericApplicationContext
used by thisContextLoader
.AbstractGenericContextLoader.loadContextForAotProcessing
(MergedContextConfiguration mergedConfig) Load aGenericApplicationContext
for AOT build-time processing based on the suppliedMergedContextConfiguration
.AbstractGenericContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load aGenericApplicationContext
for AOT run-time execution based on the suppliedMergedContextConfiguration
andApplicationContextInitializer
.Modifier and TypeMethodDescriptionprotected abstract BeanDefinitionReader
AbstractGenericContextLoader.createBeanDefinitionReader
(GenericApplicationContext context) Factory method for creating a newBeanDefinitionReader
for loading bean definitions into the suppliedcontext
.protected BeanDefinitionReader
AnnotationConfigContextLoader.createBeanDefinitionReader
(GenericApplicationContext context) AnnotationConfigContextLoader
should be used as aSmartContextLoader
, not as a legacyContextLoader
.protected BeanDefinitionReader
GenericXmlContextLoader.createBeanDefinitionReader
(GenericApplicationContext context) Create a newXmlBeanDefinitionReader
.protected void
AbstractGenericContextLoader.customizeContext
(GenericApplicationContext context) Customize theGenericApplicationContext
created by thisContextLoader
after bean definitions have been loaded into the context but before the context is refreshed.protected void
AbstractGenericContextLoader.loadBeanDefinitions
(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Load bean definitions into the suppliedcontext
from the locations or classes in the suppliedMergedContextConfiguration
.protected void
AnnotationConfigContextLoader.loadBeanDefinitions
(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Register classes in the suppliedcontext
from the classes in the suppliedMergedContextConfiguration
.protected void
GenericGroovyXmlContextLoader.loadBeanDefinitions
(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Load bean definitions into the suppliedcontext
from the locations in the suppliedMergedContextConfiguration
using aGroovyBeanDefinitionReader
.protected void
AbstractGenericContextLoader.prepareContext
(GenericApplicationContext context) Prepare theGenericApplicationContext
created by thisContextLoader
. -
Uses of GenericApplicationContext in org.springframework.web.context.support
Modifier and TypeClassDescriptionclass
Subclass ofGenericApplicationContext
, suitable for web environments.class
StaticWebApplicationContext
implementation for testing.