Also: SpringCore
public interface

MetadataReaderFactory

org.springframework.core.type.classreading.MetadataReaderFactory
Known Indirect Subclasses

Class Overview

Factory interface for MetadataReader instances. Allows for caching a MetadataReader per original resource.

Summary

Public Methods
abstract MetadataReader getMetadataReader(Resource resource)
Obtain a MetadataReader for the given resource.
abstract MetadataReader getMetadataReader(String className)
Obtain a MetadataReader for the given class name.

Public Methods

public abstract MetadataReader getMetadataReader (Resource resource)

Also: SpringCore

Obtain a MetadataReader for the given resource.

Parameters
resource the resource (pointing to a ".class" file)
Returns
  • a holder for the ClassReader instance (never null)
Throws
IOException in case of I/O failure

public abstract MetadataReader getMetadataReader (String className)

Also: SpringCore

Obtain a MetadataReader for the given class name.

Parameters
className the class name (to be resolved to a ".class" file)
Returns
  • a holder for the ClassReader instance (never null)
Throws
IOException in case of I/O failure