Uses of Package
org.springframework.context.annotation
Package
Description
Annotations and supporting classes for declarative cache management.
AspectJ-based caching support.
Support package for declarative JSR-107 caching configuration.
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
AspectJ-based dependency injection support driven by the
@Configurable
annotation.Annotations and support classes for declarative JMS listener endpoints.
Configuration support for WebSocket messaging using higher level messaging protocols.
Annotation support for asynchronous method execution.
AspectJ-based scheduling support.
Spring's support for annotation-based transaction demarcation.
AspectJ-based transaction management support.
Provides convenience annotations for web scopes.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.Spring WebFlux configuration infrastructure.
Server-side support classes for WebSocket requests.
Annotation-based setup for Spring MVC.
Support for annotation-based WebSocket setup in configuration classes.
-
ClassDescriptionEnumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.Convenient base class for
ImportSelector
implementations that select imports based on anAdviceMode
value from an annotation (such as the@Enable*
annotations).Indicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes.Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Interface to be implemented by types that determine which @Configuration
class(es) should be imported based on a given selection criteria, usually one or more annotation attributes.Indicates the 'role' hint for a given bean. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Indicates the 'role' hint for a given bean. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Indicates the 'role' hint for a given bean. -
ClassDescriptionEnumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.
BeanNameGenerator
implementation for bean classes annotated with the@Component
annotation or with another annotation that is itself annotated with@Component
as a meta-annotation.Common interface for annotation config application contexts, definingAnnotationConfigRegistry.register(java.lang.Class<?>...)
andAnnotationConfigRegistry.scan(java.lang.String...)
methods.Indicates that a method produces a bean to be managed by the Spring container.A bean definition scanner that detects bean candidates on the classpath, registering corresponding bean definitions with a given registry (BeanFactory
orApplicationContext
).A component provider that scans for candidate components starting from a specified base package.Class representing generic injection information about an annotated field or setter method, supporting @Resource and related annotations.A singlecondition
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 byCondition
implementations.Indicates that a class declares one or more@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:The various configuration phases where the condition could be evaluated.A variation ofImportSelector
that runs after all@Configuration
beans have been processed.Interface used to group results from different import selectors.An entry that holds theAnnotationMetadata
of the importingConfiguration
class and the class name to import.AspectJ weaving enablement options.Enumeration of the type filters that may be used in conjunction with@ComponentScan
.An extension ofAnnotationBeanNameGenerator
that 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
(seeAnnotationBeanNameGenerator
for details on supported annotations).Indicates one or more component classes to import — typically@Configuration
classes.Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Interface to be implemented by types that register additional bean definitions when processing @Configuration
classes.Interface to be implemented by types that determine which @Configuration
class(es) should be imported based on a given selection criteria, usually one or more annotation attributes.Interface to be implemented by@Configuration
classes annotated with@EnableLoadTimeWeaving
that wish to customize theLoadTimeWeaver
instance to be used.Resolver for the injection of named beans on a field or method element, following the rules of theResource
annotation but without any JNDI support.Indicates the 'role' hint for a given bean.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. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes.Indicates the 'role' hint for a given bean. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes.Indicates the 'role' hint for a given bean. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.
-
ClassDescriptionEnumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.Convenient base class for
ImportSelector
implementations that select imports based on anAdviceMode
value from an annotation (such as the@Enable*
annotations).Indicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes.Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Interface to be implemented by types that determine which @Configuration
class(es) should be imported based on a given selection criteria, usually one or more annotation attributes.Indicates the 'role' hint for a given bean. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Indicates the 'role' hint for a given bean. -
ClassDescriptionEnumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.Convenient base class for
ImportSelector
implementations that select imports based on anAdviceMode
value from an annotation (such as the@Enable*
annotations).Indicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes.Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Indicates that one or moreRuntimeHintsRegistrar
implementations should be processed.Interface to be implemented by types that determine which @Configuration
class(es) should be imported based on a given selection criteria, usually one or more annotation attributes.Indicates the 'role' hint for a given bean. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Interface to be implemented by any @Configuration
class that wishes to be injected with theAnnotationMetadata
of the @Configuration
class that imported it.Indicates the 'role' hint for a given bean. -
ClassDescriptionWhen used as a type-level annotation in conjunction with
@Component
,@Scope
indicates the name of a scope to use for instances of the annotated type. -
ClassDescriptionConvenient adapter for programmatic registration of bean classes.Common interface for annotation config application contexts, defining
AnnotationConfigRegistry.register(java.lang.Class<?>...)
andAnnotationConfigRegistry.scan(java.lang.String...)
methods.A bean definition scanner that detects bean candidates on the classpath, registering corresponding bean definitions with a given registry (BeanFactory
orApplicationContext
).Strategy interface for resolving the scope of bean definitions. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes. -
ClassDescriptionIndicates that one or more
RuntimeHintsRegistrar
implementations should be processed. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes.Indicates whether a bean is to be lazily initialized. -
ClassDescriptionIndicates that a method produces a bean to be managed by the Spring container.Indicates that a class declares one or more
@Bean
methods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Indicates one or more component classes to import — typically@Configuration
classes.