Class SimpleMetadataReaderFactory

java.lang.Object
org.springframework.core.type.classreading.SimpleMetadataReaderFactory
All Implemented Interfaces:
MetadataReaderFactory
Direct Known Subclasses:
CachingMetadataReaderFactory

public class SimpleMetadataReaderFactory extends Object implements MetadataReaderFactory
Simple implementation of the MetadataReaderFactory interface, creating a new ASM ClassReader for every request.
Since:
2.5
Author:
Juergen Hoeller
  • Constructor Details

    • SimpleMetadataReaderFactory

      public SimpleMetadataReaderFactory()
      Create a new SimpleMetadataReaderFactory for the default class loader.
    • SimpleMetadataReaderFactory

      public SimpleMetadataReaderFactory(@Nullable ResourceLoader resourceLoader)
      Create a new SimpleMetadataReaderFactory for the given resource loader.
      Parameters:
      resourceLoader - the Spring ResourceLoader to use (also determines the ClassLoader to use)
    • SimpleMetadataReaderFactory

      public SimpleMetadataReaderFactory(@Nullable ClassLoader classLoader)
      Create a new SimpleMetadataReaderFactory for the given class loader.
      Parameters:
      classLoader - the ClassLoader to use
  • Method Details