接口的使用
org.springframework.core.type.AnnotationMetadata
使用AnnotationMetadata的程序包 程序包 说明 org.springframework.beans.factory.annotation Support package for annotation-driven bean configuration.org.springframework.cache.annotation Annotations and supporting classes for declarative cache management.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.core.type Core support package for type introspection.org.springframework.core.type.classreading Support classes for reading annotation and class-level metadata.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.transaction.annotation Spring's support for annotation-based transaction demarcation.org.springframework.beans.factory.annotation中AnnotationMetadata的使用
返回AnnotationMetadata的org.springframework.beans.factory.annotation中的方法 修饰符和类型 方法 说明 AnnotationMetadata
AnnotatedBeanDefinition. getMetadata()
Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.AnnotationMetadata
AnnotatedGenericBeanDefinition. getMetadata()
参数类型为AnnotationMetadata的org.springframework.beans.factory.annotation中的构造器 构造器 说明 AnnotatedGenericBeanDefinition(AnnotationMetadata metadata)
Create a new AnnotatedGenericBeanDefinition for the given annotation metadata, allowing for ASM-based processing and avoidance of early loading of the bean class.AnnotatedGenericBeanDefinition(AnnotationMetadata metadata, MethodMetadata factoryMethodMetadata)
Create a new AnnotatedGenericBeanDefinition for the given annotation metadata, based on an annotated class and a factory method on that class.org.springframework.cache.annotation中AnnotationMetadata的使用
参数类型为AnnotationMetadata的org.springframework.cache.annotation中的方法 修饰符和类型 方法 说明 void
AbstractCachingConfiguration. setImportMetadata(AnnotationMetadata importMetadata)
org.springframework.context.annotation中AnnotationMetadata的使用
返回AnnotationMetadata的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 AnnotationMetadata
DeferredImportSelector.Group.Entry. getMetadata()
Return theAnnotationMetadata
of the importingConfiguration
class.AnnotationMetadata
ScannedGenericBeanDefinition. getMetadata()
参数类型为AnnotationMetadata的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 void
DeferredImportSelector.Group. process(AnnotationMetadata metadata, DeferredImportSelector selector)
Process theAnnotationMetadata
of the importing @Configuration
class using the specifiedDeferredImportSelector
.void
AutoProxyRegistrar. registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
Register, escalate, and configure the standard auto proxy creator (APC) against the given registry.default void
ImportBeanDefinitionRegistrar. registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
Register bean definitions as necessary based on the given annotation metadata of the importing@Configuration
class.default void
ImportBeanDefinitionRegistrar. registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator)
Register bean definitions as necessary based on the given annotation metadata of the importing@Configuration
class.String[]
AdviceModeImportSelector. selectImports(AnnotationMetadata importingClassMetadata)
This implementation resolves the type of annotation from generic metadata and validates that (a) the annotation is in fact present on the importing@Configuration
class and (b) that the given annotation has an advice mode attribute of typeAdviceMode
.String[]
ImportSelector. selectImports(AnnotationMetadata importingClassMetadata)
Select and return the names of which class(es) should be imported based on theAnnotationMetadata
of the importing @Configuration
class.void
ImportAware. setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @Configuration
class.void
LoadTimeWeavingConfiguration. setImportMetadata(AnnotationMetadata importMetadata)
void
MBeanExportConfiguration. setImportMetadata(AnnotationMetadata importMetadata)
参数类型为AnnotationMetadata的org.springframework.context.annotation中的构造器 构造器 说明 Entry(AnnotationMetadata metadata, String importClassName)
org.springframework.core.type中AnnotationMetadata的使用
实现AnnotationMetadata的org.springframework.core.type中的类 修饰符和类型 类 说明 class
StandardAnnotationMetadata
AnnotationMetadata
implementation that uses standard reflection to introspect a givenClass
.返回AnnotationMetadata的org.springframework.core.type中的方法 修饰符和类型 方法 说明 static AnnotationMetadata
AnnotationMetadata. introspect(Class<?> type)
Factory method to create a newAnnotationMetadata
instance for the given class using standard reflection.org.springframework.core.type.classreading中AnnotationMetadata的使用
实现AnnotationMetadata的org.springframework.core.type.classreading中的类 修饰符和类型 类 说明 class
AnnotationMetadataReadingVisitor
已过时。As of Spring Framework 5.2, this class has been replaced bySimpleAnnotationMetadataReadingVisitor
for internal use within the framework, but there is no public replacement forAnnotationMetadataReadingVisitor
.返回AnnotationMetadata的org.springframework.core.type.classreading中的方法 修饰符和类型 方法 说明 AnnotationMetadata
MetadataReader. getAnnotationMetadata()
Read full annotation metadata for the underlying class, including metadata for annotated methods.org.springframework.scheduling.annotation中AnnotationMetadata的使用
参数类型为AnnotationMetadata的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 void
AbstractAsyncConfiguration. setImportMetadata(AnnotationMetadata importMetadata)
org.springframework.transaction.annotation中AnnotationMetadata的使用
参数类型为AnnotationMetadata的org.springframework.transaction.annotation中的方法 修饰符和类型 方法 说明 void
AbstractTransactionManagementConfiguration. setImportMetadata(AnnotationMetadata importMetadata)