Uses of Class
org.springframework.context.support.GenericApplicationContext
Packages that use 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
Subclasses of GenericApplicationContext in org.springframework.context.annotationModifier and TypeClassDescriptionclassStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations. -
Uses of GenericApplicationContext in org.springframework.context.aot
Methods in org.springframework.context.aot that return GenericApplicationContextModifier and TypeMethodDescriptionprotected abstract GenericApplicationContextContextAotProcessor.prepareApplicationContext(Class<?> applicationClass) Prepare theGenericApplicationContextfor the specified application entry point to be used against anApplicationContextAotGenerator.Methods in org.springframework.context.aot with parameters of type GenericApplicationContextModifier and TypeMethodDescriptionprotected org.springframework.javapoet.ClassNameContextAotProcessor.performAotProcessing(GenericApplicationContext applicationContext) Perform ahead-of-time processing of the specified context.org.springframework.javapoet.ClassNameApplicationContextAotGenerator.processAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext) Process the specifiedGenericApplicationContextahead-of-time using the specifiedGenerationContext. -
Uses of GenericApplicationContext in org.springframework.context.support
Subclasses of GenericApplicationContext in org.springframework.context.supportModifier and TypeClassDescriptionclassAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String).classConvenient application context with built-in XML support.classApplicationContextimplementation 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
Methods in org.springframework.test.context.support that return GenericApplicationContextModifier and TypeMethodDescriptionprotected GenericApplicationContextAbstractGenericContextLoader.createContext()Factory method for creating theGenericApplicationContextused by thisContextLoader.AbstractGenericContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig) Load aGenericApplicationContextfor AOT build-time processing based on the suppliedMergedContextConfiguration.AbstractGenericContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) Load aGenericApplicationContextfor AOT run-time execution based on the suppliedMergedContextConfigurationandApplicationContextInitializer.Methods in org.springframework.test.context.support with parameters of type GenericApplicationContextModifier and TypeMethodDescriptionprotected abstract BeanDefinitionReaderAbstractGenericContextLoader.createBeanDefinitionReader(GenericApplicationContext context) Factory method for creating a newBeanDefinitionReaderfor loading bean definitions into the suppliedcontext.protected BeanDefinitionReaderAnnotationConfigContextLoader.createBeanDefinitionReader(GenericApplicationContext context) AnnotationConfigContextLoadershould be used as aSmartContextLoader, not as a legacyContextLoader.protected BeanDefinitionReaderGenericXmlContextLoader.createBeanDefinitionReader(GenericApplicationContext context) Create a newXmlBeanDefinitionReader.protected voidAbstractGenericContextLoader.customizeContext(GenericApplicationContext context) Customize theGenericApplicationContextcreated by thisContextLoaderafter bean definitions have been loaded into the context but before the context is refreshed.protected voidAbstractGenericContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Load bean definitions into the suppliedcontextfrom the locations or classes in the suppliedMergedContextConfiguration.protected voidAnnotationConfigContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Register classes in the suppliedcontextfrom the classes in the suppliedMergedContextConfiguration.protected voidGenericGroovyXmlContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Load bean definitions into the suppliedcontextfrom the locations in the suppliedMergedContextConfigurationusing aGroovyBeanDefinitionReader.protected voidAbstractGenericContextLoader.prepareContext(GenericApplicationContext context) Prepare theGenericApplicationContextcreated by thisContextLoader. -
Uses of GenericApplicationContext in org.springframework.web.context.support
Subclasses of GenericApplicationContext in org.springframework.web.context.supportModifier and TypeClassDescriptionclassSubclass ofGenericApplicationContext, suitable for web environments.classStaticWebApplicationContextimplementation for testing.