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 newMethodsMetadataReaderFactory
for the default class loader.MethodsMetadataReaderFactory
(ClassLoader classLoader) Deprecated.Create a newMethodsMetadataReaderFactory
for the givenClassLoader
.MethodsMetadataReaderFactory
(org.springframework.core.io.ResourceLoader resourceLoader) Deprecated.Create a newMethodsMetadataReaderFactory
for 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 newMethodsMetadataReaderFactory
for the default class loader. -
MethodsMetadataReaderFactory
public MethodsMetadataReaderFactory(@Nullable org.springframework.core.io.ResourceLoader resourceLoader) Deprecated.Create a newMethodsMetadataReaderFactory
for the givenResourceLoader
.- Parameters:
resourceLoader
- the SpringResourceLoader
to use (also determines theClassLoader
to use).
-
MethodsMetadataReaderFactory
Deprecated.Create a newMethodsMetadataReaderFactory
for the givenClassLoader
.- Parameters:
classLoader
- the class loader to use.
-
-
Method Details
-
getMetadataReader
Deprecated.- Specified by:
getMetadataReader
in interfaceorg.springframework.core.type.classreading.MetadataReaderFactory
- Overrides:
getMetadataReader
in classorg.springframework.core.type.classreading.SimpleMetadataReaderFactory
- Throws:
IOException
-
getMetadataReader
public MethodsMetadataReader getMetadataReader(org.springframework.core.io.Resource resource) throws IOException Deprecated.- Specified by:
getMetadataReader
in interfaceorg.springframework.core.type.classreading.MetadataReaderFactory
- Overrides:
getMetadataReader
in classorg.springframework.core.type.classreading.SimpleMetadataReaderFactory
- Throws:
IOException
-
SimpleMetadataReaderFactory
directly.