接口的使用
org.springframework.core.type.classreading.MetadataReaderFactory
使用MetadataReaderFactory的程序包 程序包 说明 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.classreading Support classes for reading annotation and class-level metadata.org.springframework.core.type.filter Core support package for type filtering (e.g. for classpath scanning).org.springframework.context.annotation中MetadataReaderFactory的使用
返回MetadataReaderFactory的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 MetadataReaderFactory
ClassPathScanningCandidateComponentProvider. getMetadataReaderFactory()
Return the MetadataReaderFactory used by this component provider.参数类型为MetadataReaderFactory的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 void
ClassPathScanningCandidateComponentProvider. setMetadataReaderFactory(MetadataReaderFactory metadataReaderFactory)
Set theMetadataReaderFactory
to use.void
ConfigurationClassPostProcessor. setMetadataReaderFactory(MetadataReaderFactory metadataReaderFactory)
Set theMetadataReaderFactory
to use.org.springframework.core.type.classreading中MetadataReaderFactory的使用
实现MetadataReaderFactory的org.springframework.core.type.classreading中的类 修饰符和类型 类 说明 class
CachingMetadataReaderFactory
Caching implementation of theMetadataReaderFactory
interface, caching aMetadataReader
instance per SpringResource
handle (i.e. per ".class" file).class
SimpleMetadataReaderFactory
Simple implementation of theMetadataReaderFactory
interface, creating a new ASMClassReader
for every request.org.springframework.core.type.filter中MetadataReaderFactory的使用
参数类型为MetadataReaderFactory的org.springframework.core.type.filter中的方法 修饰符和类型 方法 说明 boolean
AbstractClassTestingTypeFilter. match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
boolean
AbstractTypeHierarchyTraversingFilter. match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
boolean
AspectJTypeFilter. match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
boolean
TypeFilter. match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
Determine whether this filter matches for the class described by the given metadata.