程序包 org.springframework.beans.factory.annotation
Support package for annotation-driven bean configuration.
接口概要 接口 说明 AnnotatedBeanDefinition ExtendedBeanDefinition
interface that exposesAnnotationMetadata
about its bean class - without requiring the class to be loaded yet.类概要 类 说明 AnnotatedGenericBeanDefinition Extension of theGenericBeanDefinition
class, adding support for annotation metadata exposed through theAnnotatedBeanDefinition
interface.AnnotationBeanWiringInfoResolver BeanWiringInfoResolver
that uses the Configurable annotation to identify which classes need autowiring.AutowiredAnnotationBeanPostProcessor BeanPostProcessor
implementation that autowires annotated fields, setter methods, and arbitrary config methods.BeanFactoryAnnotationUtils Convenience methods performing bean lookups related to Spring-specific annotations, for example Spring's@Qualifier
annotation.CustomAutowireConfigurer ABeanFactoryPostProcessor
implementation that allows for convenient registration of custom autowire qualifier types.InitDestroyAnnotationBeanPostProcessor BeanPostProcessor
implementation that invokes annotated init and destroy methods.InjectionMetadata Internal class for managing injection metadata.InjectionMetadata.InjectedElement A single injected element.ParameterResolutionDelegate Public delegate for resolving autowirable parameters on externally managed constructors and methods.QualifierAnnotationAutowireCandidateResolver AutowireCandidateResolver
implementation that matches bean definition qualifiers againstqualifier annotations
on the field or parameter to be autowired.RequiredAnnotationBeanPostProcessor 已过时。 as of 5.1, in favor of using constructor injection for required settings (or a customInitializingBean
implementation)枚举概要 枚举 说明 Autowire Enumeration determining autowiring status: that is, whether a bean should have its dependencies automatically injected by the Spring container using setter injection.注释类型概要 注释类型 说明 Autowired Marks a constructor, field, setter method, or config method as to be autowired by Spring's dependency injection facilities.Configurable Marks a class as being eligible for Spring-driven configuration.Lookup An annotation that indicates 'lookup' methods, to be overridden by the container to redirect them back to theBeanFactory
for agetBean
call.Qualifier This annotation may be used on a field or parameter as a qualifier for candidate beans when autowiring.Required 已过时。 as of 5.1, in favor of using constructor injection for required settings (or a customInitializingBean
implementation)Value Annotation used at the field or method/constructor parameter level that indicates a default value expression for the annotated element.