类 SimpleMetadataReaderFactory
java.lang.Object
cn.taketoday.core.type.classreading.SimpleMetadataReaderFactory
- 所有已实现的接口:
MetadataReaderFactory
Simple implementation of the
MetadataReaderFactory interface,
creating a new ASM ClassReader for every request.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
-
构造器概要
构造器构造器说明Create a new SimpleMetadataReaderFactory for the default class loader.SimpleMetadataReaderFactory(ResourceLoader resourceLoader) Create a new SimpleMetadataReaderFactory for the given resource loader.SimpleMetadataReaderFactory(ClassLoader classLoader) Create a new SimpleMetadataReaderFactory for the given class loader. -
方法概要
修饰符和类型方法说明getMetadataReader(Resource resource) Obtain a MetadataReader for the given resource.getMetadataReader(String className) Obtain a MetadataReader for the given class name.final ResourceLoaderReturn the ResourceLoader that this MetadataReaderFactory has been constructed with.
-
构造器详细资料
-
SimpleMetadataReaderFactory
public SimpleMetadataReaderFactory()Create a new SimpleMetadataReaderFactory for the default class loader. -
SimpleMetadataReaderFactory
Create a new SimpleMetadataReaderFactory for the given resource loader.- 参数:
resourceLoader- the ResourceLoader to use (also determines the ClassLoader to use)
-
SimpleMetadataReaderFactory
Create a new SimpleMetadataReaderFactory for the given class loader.- 参数:
classLoader- the ClassLoader to use
-
-
方法详细资料
-
getResourceLoader
Return the ResourceLoader that this MetadataReaderFactory has been constructed with. -
getMetadataReader
从接口复制的说明:MetadataReaderFactoryObtain a MetadataReader for the given class name.- 指定者:
getMetadataReader在接口中MetadataReaderFactory- 参数:
className- the class name (to be resolved to a ".class" file)- 返回:
- a holder for the ClassReader instance (never
null) - 抛出:
IOException- in case of I/O failure
-
getMetadataReader
从接口复制的说明:MetadataReaderFactoryObtain a MetadataReader for the given resource.- 指定者:
getMetadataReader在接口中MetadataReaderFactory- 参数:
resource- the resource (pointing to a ".class" file)- 返回:
- a holder for the ClassReader instance (never
null) - 抛出:
IOException- in case of I/O failure
-