net.sf.mmm.util.reflect.api
Interface ClassResolver
- All Known Implementing Classes:
- JavaLangClassResolver, MappedClassResolver
public interface ClassResolver
This is the callback interface used to resolve a type by some logical name to
the Class reflecting that type.
- Since:
- 1.0.1
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
- See Also:
CLASS_FOR_NAME_RESOLVER
CLASS_FOR_NAME_RESOLVER
static final ClassResolver CLASS_FOR_NAME_RESOLVER
- This is a singleton implementation of the
ClassResolver interface
that simply delegates to Class.forName(String).
resolveClass
Class<?> resolveClass(String name)
throws TypeNotFoundException
- This method resolves the class with the given
name. In
addition to a ClassLoader this method may also find types via a
logical alias name.
The name can be the physical (fully qualified) classname (e.g.
org.foo.BlobImpl) but this may also be a logical name
depending on the implementation of this interface (e.g. Blob
may point to the same type).
- Parameters:
name - is the logical or physical name of the requested type.
- Returns:
- the class reflecting the type with the given
name.
- Throws:
TypeNotFoundException - if the requested type was NOT found.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.