Class MethodsMetadataReaderFactory

java.lang.Object
org.springframework.core.type.classreading.SimpleMetadataReaderFactory
org.springframework.data.type.classreading.MethodsMetadataReaderFactory
All Implemented Interfaces:
org.springframework.core.type.classreading.MetadataReaderFactory

@Deprecated public class MethodsMetadataReaderFactory extends org.springframework.core.type.classreading.SimpleMetadataReaderFactory
Deprecated.
since 3.0. Use SimpleMetadataReaderFactory directly.
Extension of SimpleMetadataReaderFactory that reads MethodsMetadata, creating a new ASM MethodsMetadataReader for every request.
Since:
2.1
Author:
Mark Paluch
  • Constructor Details

    • MethodsMetadataReaderFactory

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

      public MethodsMetadataReaderFactory(@Nullable org.springframework.core.io.ResourceLoader resourceLoader)
      Deprecated.
      Create a new MethodsMetadataReaderFactory for the given ResourceLoader.
      Parameters:
      resourceLoader - the Spring ResourceLoader to use (also determines the ClassLoader to use).
    • MethodsMetadataReaderFactory

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

    • getMetadataReader

      public MethodsMetadataReader getMetadataReader(String className) throws IOException
      Deprecated.
      Specified by:
      getMetadataReader in interface org.springframework.core.type.classreading.MetadataReaderFactory
      Overrides:
      getMetadataReader in class org.springframework.core.type.classreading.SimpleMetadataReaderFactory
      Throws:
      IOException
    • getMetadataReader

      public MethodsMetadataReader getMetadataReader(org.springframework.core.io.Resource resource) throws IOException
      Deprecated.
      Specified by:
      getMetadataReader in interface org.springframework.core.type.classreading.MetadataReaderFactory
      Overrides:
      getMetadataReader in class org.springframework.core.type.classreading.SimpleMetadataReaderFactory
      Throws:
      IOException