Save This Page
Home » openjdk-7 » com.sun » beans » finder » [javadoc | source]
com.sun.beans.finder
public final class: ClassFinder [javadoc | source]
java.lang.Object
   com.sun.beans.finder.ClassFinder
This is utility class that provides {@code static} methods to find a class with the specified name using the specified class loader.
Method from com.sun.beans.finder.ClassFinder Summary:
findClass,   findClass,   resolveClass,   resolveClass
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.beans.finder.ClassFinder Detail:
 public static Class<?> findClass(String name) throws ClassNotFoundException 
    Returns the {@code Class} object associated with the class or interface with the given string name, using the default class loader.

    The {@code name} can denote an array class (see Class#getName for details).

 public static Class<?> findClass(String name,
    ClassLoader loader) throws ClassNotFoundException 
    Returns the {@code Class} object associated with the class or interface with the given string name, using the given class loader.

    The {@code name} can denote an array class (see Class#getName for details).

    If the parameter {@code loader} is null, the class is loaded through the default class loader.

 public static Class<?> resolveClass(String name) throws ClassNotFoundException 
    Returns the {@code Class} object associated with the class or interface with the given string name, using the default class loader.

    The {@code name} can denote an array class (see Class#getName for details).

    This method can be used to obtain any of the {@code Class} objects representing {@code void} or primitive Java types: {@code char}, {@code byte}, {@code short}, {@code int}, {@code long}, {@code float}, {@code double} and {@code boolean}.

 public static Class<?> resolveClass(String name,
    ClassLoader loader) throws ClassNotFoundException 
    Returns the {@code Class} object associated with the class or interface with the given string name, using the given class loader.

    The {@code name} can denote an array class (see Class#getName for details).

    If the parameter {@code loader} is null, the class is loaded through the default class loader.

    This method can be used to obtain any of the {@code Class} objects representing {@code void} or primitive Java types: {@code char}, {@code byte}, {@code short}, {@code int}, {@code long}, {@code float}, {@code double} and {@code boolean}.