Package org.springframework.context.annotation
@NullMarked
package 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.
-
ClassDescriptionEnumeration used to determine whether JDK/CGLIB proxy-based or AspectJ weaving-based advice should be applied.AdviceModeImportSelector<A extends Annotation>Convenient base class for
ImportSelectorimplementations that select imports based on anAdviceModevalue from an annotation (such as the@Enable*annotations).Convenient adapter for programmatic registration of bean classes.BeanNameGeneratorimplementation for bean classes annotated with the@Componentannotation or with another annotation that is itself annotated with@Componentas a meta-annotation.Standalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations.Parser for the <context:annotation-config/> element.Common interface for annotation config application contexts, definingAnnotationConfigRegistry.register(BeanRegistrar...)andAnnotationConfigRegistry.scan(String...)methods.Utility class that allows for convenient registration of commonBeanPostProcessorandBeanFactoryPostProcessordefinitions for annotation-based configuration.AScopeMetadataResolverimplementation that by default checks for the presence of Spring's@Scopeannotation on the bean class.Registers an auto proxy creator against the currentBeanDefinitionRegistryas appropriate based on an@Enable*annotation havingmodeandproxyTargetClassattributes set to the correct values.Indicates that a method produces a bean to be managed by the Spring container.Local enumeration for the bootstrap mode.A bean definition scanner that detects bean candidates on the classpath, registering corresponding bean definitions with a given registry (BeanFactoryorApplicationContext).A component provider that scans for candidate components starting from a specified base package.BeanPostProcessorimplementation that supports common Java annotations out of the box, in particular the common annotations in thejakarta.annotationpackage.Class representing generic injection information about an annotated field or setter method, supporting @Resource and related annotations.Configures component scanning directives for use with@Configurationclasses.Declares the type filter to be used as an include filter or exclude filter.Parser for the<context:component-scan/>element.Container annotation that aggregates severalComponentScanannotations.A single condition that must be matched in order for a component to be registered.Indicates that a component is only eligible for registration when all specified conditions match.Context information for use byConditionimplementations.Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Extended variant ofBeanNameGeneratorfor@Configurationclass purposes, not only covering bean name generation for component and configuration classes themselves but also for@Beanmethods.BeanFactoryPostProcessorused for bootstrapping processing of@Configurationclasses.Utilities for identifying and configuringConfigurationclasses.AConditionthat offers more fine-grained control when used with@Configuration.The various configuration phases where the condition could be evaluated.Complete implementation of theAutowireCandidateResolverstrategy interface, providing support for qualifier annotations as well as for lazy resolution driven by theLazyannotation in thecontext.annotationpackage.A variation ofImportSelectorthat runs after all@Configurationbeans have been processed.Interface used to group results from different import selectors.An entry that holds theAnnotationMetadataof the importingConfigurationclass and the class name to import.Beans on which the current bean depends.Enables support for handling components marked with AspectJ's@Aspectannotation, similar to functionality found in Spring's<aop:aspectj-autoproxy>XML element.Activates a SpringLoadTimeWeaverfor this application context, available as a bean with the name "loadTimeWeaver", similar to the<context:load-time-weaver>element in Spring XML.AspectJ weaving enablement options.Enables default exporting of all standardMBeans from the Spring context, as well as all@ManagedResourceannotated beans.Indicates that a bean qualifies as a fallback autowire candidate.Enumeration of the type filters that may be used in conjunction with@ComponentScan.An extension ofAnnotationBeanNameGeneratorthat uses the fully qualified class name as the default bean name if an explicit bean name is not supplied via a supported type-level annotation such as@Component(seeAnnotationBeanNameGeneratorfor details on supported annotations).Extended variant ofFullyQualifiedAnnotationBeanNameGeneratorfor@Configurationclass purposes, not only enforcing fully-qualified names for component and configuration classes themselves but also fully-qualified default bean names ("className.methodName") for@Beanmethods.Indicates one or more component classes to import — typically@Configurationclasses.Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.ABeanPostProcessorthat honoursImportAwarecallback using a mapping computed at build time.Interface to be implemented by types that register additional bean definitions when processing @Configurationclasses.Indicates one or more resources containing bean definitions to import.Indicates that one or moreRuntimeHintsRegistrarimplementations should be processed.Interface to be implemented by types that determine which @Configurationclass(es) should be imported based on a given selection criteria, usually one or more annotation attributes.SimpleScopeMetadataResolverimplementation that follows JSR-330 scoping rules: defaulting to prototype scope unlessSingletonis present.Indicates whether a bean is to be lazily initialized.@Configurationclass that registers aLoadTimeWeaverbean.Interface to be implemented by@Configurationclasses annotated with@EnableLoadTimeWeavingthat wish to customize theLoadTimeWeaverinstance to be used.@Configurationclass that registers aAnnotationMBeanExporterbean.Indicates that a bean should be given preference when multiple candidates are qualified to autowire a single-valued dependency.Indicates that a component is eligible for registration when one or more specified profiles are active.Annotation providing a convenient and declarative mechanism for adding aPropertySourceto Spring'sEnvironment.Container annotation that aggregates severalPropertySourceannotations.Common annotation for suggesting a specific proxy type for a@Beanmethod or@Componentclass, overriding a globally configured default.Common enum for indicating a desired proxy type.Scan arbitrary types for use ofReflective.Resolver for the injection of named beans on a field or method element, following the rules of theResourceannotation but without any JNDI support.Indicates the 'role' hint for a given bean.Extension of theGenericBeanDefinitionclass, based on an ASM ClassReader, with support for annotation metadata exposed through theAnnotatedBeanDefinitioninterface.When used as a type-level annotation in conjunction with@Component,@Scopeindicates the name of a scope to use for instances of the annotated type.Enumerates the various scoped-proxy options.Describes scope characteristics for a Spring-managed bean including the scope name and the scoped-proxy behavior.Strategy interface for resolving the scope of bean definitions.Collection of utilities for working with@ComponentScantype filters.