public static ClassLoader getParentClassLoader ( ) { logger . debug ( "getParentClassLoader() invoked, web start mode: {}" , IS_WEB_START ) ; if ( IS_WEB_START ) { return Thread . currentThread ( ) . getContextClassLoader ( ) ; } else { return ClassLoaderUtils . class . getClassLoader ( ) ; } }
Gets an appropriate classloader for usage when performing classpath lookups and scanning .