程序包 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 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.QualifierAnnotationAutowireCandidateResolver AutowireCandidateResolver
implementation that matches bean definition qualifiers againstqualifier annotations
on the field or parameter to be autowired.RequiredAnnotationBeanPostProcessor BeanPostProcessor
implementation that enforces required JavaBean properties to have been configured.枚举概要 枚举 说明 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 Marks a method (typically a JavaBean setter method) as being 'required': that is, the setter method must be configured to be dependency-injected with a value.Value Annotation at the field or method/constructor parameter level that indicates a default value expression for the affected argument.