| java.lang.Object com.sun.beans.finder.ClassFinder
ClassFinder | final public class ClassFinder (Code) | | This is utility class that provides static methods
to find a class with the specified name using the specified class loader.
since: 1.7 version: 1.8 05/05/07 author: Sergey A. Malenkov |
Method Summary | |
public static Class | findClass(String name) Returns the Class object associated
with the class or interface with the given string name,
using the default class loader. | public static Class | findClass(String name, ClassLoader loader) Returns the Class object associated with
the class or interface with the given string name,
using the given class loader. | public static Class | resolveClass(String name) Returns the Class object associated
with the class or interface with the given string name,
using the default class loader. | public static Class | resolveClass(String name, ClassLoader loader) Returns the Class object associated with
the class or interface with the given string name,
using the given class loader. |
resolveClass | public static Class resolveClass(String name) throws ClassNotFoundException(Code) | | Returns the Class object associated
with the class or interface with the given string name,
using the default class loader.
The name can denote an array class
(see
Class.getName for details).
This method can be used to obtain
any of the Class objects
representing void or primitive Java types:
char , byte , short ,
int , long , float ,
double and boolean .
Parameters: name - fully qualified name of the desired class class object representing the desired class exception: ClassNotFoundException - if the class cannot be locatedby the specified class loader See Also: ClassFinder.resolveClass(String,ClassLoader) |
resolveClass | public static Class resolveClass(String name, ClassLoader loader) throws ClassNotFoundException(Code) | | Returns the Class object associated with
the class or interface with the given string name,
using the given class loader.
The name can denote an array class
(see
Class.getName for details).
If the parameter loader is null,
the class is loaded through the default class loader.
This method can be used to obtain
any of the Class objects
representing void or primitive Java types:
char , byte , short ,
int , long , float ,
double and boolean .
Parameters: name - fully qualified name of the desired class Parameters: loader - class loader from which the class must be loaded class object representing the desired class exception: ClassNotFoundException - if the class cannot be locatedby the specified class loader See Also: ClassFinder.findClass(String,ClassLoader) See Also: PrimitiveTypeMap.getType(String) |
|
|