ConcurrentReferenceCachingMetadataReaderFactory

Caching implementation of the MetadataReaderFactory interface backed by a ConcurrentReferenceHashMap, caching MetadataReader per Spring Resource handle (i.e. per ".class" file).

Author

Phillip Webb

Since

1.4.0

See also

Constructors

constructor()
Create a new ConcurrentReferenceCachingMetadataReaderFactory instance for the default class loader.
constructor(resourceLoader: ResourceLoader)
Create a new ConcurrentReferenceCachingMetadataReaderFactory instance for the given resource loader.
constructor(classLoader: ClassLoader)
Create a new ConcurrentReferenceCachingMetadataReaderFactory instance for the given class loader.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun clearCache()
Clear the entire MetadataReader cache, removing all cached class metadata.
Link copied to clipboard