static Class < ? > reloadClass ( ClassLoader cl , Class < ? > classType ) throws InvocationException { try { return cl . loadClass ( classType . getName ( ) ) ; } catch ( ClassNotFoundException e ) { throw new InvocationException ( e , "Unable to reload class {0} with class loader {1}, previously loaded with {2}" , classType . getName ( ) , cl , classType . getClassLoader ( ) ) ; } }
Reloads a class from classloader using same fully qualified class name