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.
Extension of
SimpleMetadataReaderFactory that reads MethodsMetadata, creating a new ASM
MethodsMetadataReader for every request.- Since:
- 2.1
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a newMethodsMetadataReaderFactoryfor the default class loader.MethodsMetadataReaderFactory(ClassLoader classLoader) Deprecated.Create a newMethodsMetadataReaderFactoryfor the givenClassLoader.MethodsMetadataReaderFactory(org.springframework.core.io.ResourceLoader resourceLoader) Deprecated.Create a newMethodsMetadataReaderFactoryfor the givenResourceLoader. -
Method Summary
Modifier and TypeMethodDescriptiongetMetadataReader(String className) Deprecated.getMetadataReader(org.springframework.core.io.Resource resource) Deprecated.Methods inherited from class org.springframework.core.type.classreading.SimpleMetadataReaderFactory
getResourceLoader
-
Constructor Details
-
MethodsMetadataReaderFactory
public MethodsMetadataReaderFactory()Deprecated.Create a newMethodsMetadataReaderFactoryfor the default class loader. -
MethodsMetadataReaderFactory
public MethodsMetadataReaderFactory(@Nullable org.springframework.core.io.ResourceLoader resourceLoader) Deprecated.Create a newMethodsMetadataReaderFactoryfor the givenResourceLoader.- Parameters:
resourceLoader- the SpringResourceLoaderto use (also determines theClassLoaderto use).
-
MethodsMetadataReaderFactory
Deprecated.Create a newMethodsMetadataReaderFactoryfor the givenClassLoader.- Parameters:
classLoader- the class loader to use.
-
-
Method Details
-
getMetadataReader
Deprecated.- Specified by:
getMetadataReaderin interfaceorg.springframework.core.type.classreading.MetadataReaderFactory- Overrides:
getMetadataReaderin classorg.springframework.core.type.classreading.SimpleMetadataReaderFactory- Throws:
IOException
-
getMetadataReader
public MethodsMetadataReader getMetadataReader(org.springframework.core.io.Resource resource) throws IOException Deprecated.- Specified by:
getMetadataReaderin interfaceorg.springframework.core.type.classreading.MetadataReaderFactory- Overrides:
getMetadataReaderin classorg.springframework.core.type.classreading.SimpleMetadataReaderFactory- Throws:
IOException
-
SimpleMetadataReaderFactorydirectly.