|
Spring Framework | ||||||||
| 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(java.lang.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(java.lang.String className)
Obtain a MetadataReader for the given class name. |
ResourceLoader |
getResourceLoader()
Return the ResourceLoader that this MetadataReaderFactory has been constructed with. |
| 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(java.lang.ClassLoader classLoader)
classLoader - the ClassLoader to use| Method Detail |
|---|
public final ResourceLoader getResourceLoader()
public MetadataReader getMetadataReader(java.lang.String className)
throws java.io.IOException
MetadataReaderFactory
getMetadataReader in interface MetadataReaderFactoryclassName - the class name (to be resolved to a ".class" file)
null)
java.io.IOException - in case of I/O failure
public MetadataReader getMetadataReader(Resource resource)
throws java.io.IOException
MetadataReaderFactory
getMetadataReader in interface MetadataReaderFactoryresource - the resource (pointing to a ".class" file)
null)
java.io.IOException - in case of I/O failure
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||