| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.type.classreading.SimpleMetadataReaderFactory
org.springframework.core.type.classreading.CachingMetadataReaderFactory
public class CachingMetadataReaderFactory
Caching implementation of the MetadataReaderFactory interface,
 caching an ASM ClassReader per Spring Resource handle
 (i.e. per ".class" file).
| Constructor Summary | |
|---|---|
| CachingMetadataReaderFactory()Create a new CachingMetadataReaderFactory for the default class loader. | |
| CachingMetadataReaderFactory(ClassLoader classLoader)Create a new CachingMetadataReaderFactory for the given class loader. | |
| CachingMetadataReaderFactory(ResourceLoader resourceLoader)Create a new CachingMetadataReaderFactory for the given resource loader. | |
| Method Summary | |
|---|---|
|  MetadataReader | getMetadataReader(Resource resource)Obtain a MetadataReader for the given resource. | 
| Methods inherited from class org.springframework.core.type.classreading.SimpleMetadataReaderFactory | 
|---|
| getMetadataReader | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CachingMetadataReaderFactory()
public CachingMetadataReaderFactory(ResourceLoader resourceLoader)
resourceLoader - the Spring ResourceLoader to use
 (also determines the ClassLoader to use)public CachingMetadataReaderFactory(ClassLoader classLoader)
classLoader - the ClassLoader to use| Method Detail | 
|---|
public MetadataReader getMetadataReader(Resource resource)
                                 throws IOException
MetadataReaderFactory
getMetadataReader in interface MetadataReaderFactorygetMetadataReader in class SimpleMetadataReaderFactoryresource - the resource (pointing to a ".class" file)
null)
IOException - in case of I/O failure| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||