private static Object loadExtension ( Extension extension , ClassLoaderPlugin classLoaderPlugin ) { try { Class < ? > c = classLoaderPlugin . loadClass ( extension . getClassName ( ) , extension . getModuleName ( ) , extension . getModuleSlot ( ) ) ; return c . newInstance ( ) ; } catch ( Throwable t ) { log . tracef ( "Throwable while loading %s using own classloader: %s" , extension . getClassName ( ) , t . getMessage ( ) ) ; } return null ; }
Load the class