# Uses of Class
org.springframework.context.support.GenericApplicationContext

Packages that use GenericApplicationContext
Package
Description
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.aot
AOT support for application contexts.
org.springframework.context.support
Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.

## Uses of GenericApplicationContext in org.springframework.context.annotation

Subclasses of GenericApplicationContext in org.springframework.context.annotation
Modifier and Type
Class
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 `jakarta.inject` annotations.

## Uses of GenericApplicationContext in org.springframework.context.aot

Methods in org.springframework.context.aot that return GenericApplicationContext
Modifier and Type
Method
Description
`protected abstract GenericApplicationContext`
ContextAotProcessor.`prepareApplicationContext(Class<?> applicationClass)`
Prepare the `GenericApplicationContext` for the specified application entry point to be used against an `ApplicationContextAotGenerator`.
Methods in org.springframework.context.aot with parameters of type GenericApplicationContext
Modifier and Type
Method
Description
`protected 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, org.springframework.aot.generate.GenerationContext generationContext)`
Process the specified `GenericApplicationContext` ahead-of-time using the specified `GenerationContext`.

## Uses of GenericApplicationContext in org.springframework.context.support

Subclasses of GenericApplicationContext in org.springframework.context.support
Modifier and Type
Class
Description
`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.