java.lang.Object | ||
↳ | org.springframework.core.type.classreading.SimpleMetadataReaderFactory | |
↳ | org.springframework.core.type.classreading.CachingMetadataReaderFactory |
Caching implementation of the MetadataReaderFactory
interface,
caching MetadataReader
per Spring Resource
handle
(i.e. per ".class" file).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_CACHE_LIMIT | Default maximum number of entries for the MetadataReader cache: 256 |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new CachingMetadataReaderFactory for the default class loader.
| |||||||||||
Create a new CachingMetadataReaderFactory for the given resource loader.
| |||||||||||
Create a new CachingMetadataReaderFactory for the given class loader.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the maximum number of entries for the MetadataReader cache.
| |||||||||||
Obtain a MetadataReader for the given resource.
| |||||||||||
Specify the maximum number of entries for the MetadataReader cache.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.type.classreading.SimpleMetadataReaderFactory
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.type.classreading.MetadataReaderFactory
|
Default maximum number of entries for the MetadataReader cache: 256
Create a new CachingMetadataReaderFactory for the default class loader.
Create a new CachingMetadataReaderFactory for the given resource loader.
resourceLoader | the Spring ResourceLoader to use (also determines the ClassLoader to use) |
---|
Create a new CachingMetadataReaderFactory for the given class loader.
classLoader | the ClassLoader to use |
---|
Return the maximum number of entries for the MetadataReader cache.
Obtain a MetadataReader for the given resource.
resource | the resource (pointing to a ".class" file) |
---|
null
)IOException |
---|
Specify the maximum number of entries for the MetadataReader cache. Default is 256.