|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.type.classreading.SimpleMetadataReaderFactory
public class SimpleMetadataReaderFactory
Simple implementation of the MetadataReaderFactory
interface,
creating a new ASM ClassReader
for every request.
Constructor Summary | |
---|---|
SimpleMetadataReaderFactory()
Create a new SimpleMetadataReaderFactory for the default class loader. |
|
SimpleMetadataReaderFactory(ClassLoader classLoader)
Create a new SimpleMetadataReaderFactory for the given class loader. |
|
SimpleMetadataReaderFactory(ResourceLoader resourceLoader)
Create a new SimpleMetadataReaderFactory for the given resource loader. |
Method Summary | |
---|---|
MetadataReader |
getMetadataReader(Resource resource)
Obtain a MetadataReader for the given resource. |
MetadataReader |
getMetadataReader(String className)
Obtain a MetadataReader for the given class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleMetadataReaderFactory()
public SimpleMetadataReaderFactory(ResourceLoader resourceLoader)
resourceLoader
- the Spring ResourceLoader to use
(also determines the ClassLoader to use)public SimpleMetadataReaderFactory(ClassLoader classLoader)
classLoader
- the ClassLoader to useMethod Detail |
---|
public MetadataReader getMetadataReader(String className) throws IOException
MetadataReaderFactory
getMetadataReader
in interface MetadataReaderFactory
className
- the class name (to be resolved to a ".class" file)
null
)
IOException
- in case of I/O failurepublic MetadataReader getMetadataReader(Resource resource) throws IOException
MetadataReaderFactory
getMetadataReader
in interface MetadataReaderFactory
resource
- the resource (pointing to a ".class" file)
null
)
IOException
- in case of I/O failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |