public static Class < ? > loadClass ( String name , boolean init , ClassLoader loader ) throws ClassNotFoundException { if ( loader == null ) loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( loader == null || loader . equals ( CauchoUtil . class . getClassLoader ( ) ) ) return Class . forName ( name ) ; else return Class . forName ( name , init , loader ) ; }
Loads a class from a classloader . If the loader is null uses the context class loader .