public static ClassLoader getClassLoader ( final Class < ? > c ) { if ( System . getSecurityManager ( ) == null ) return c . getClassLoader ( ) ; return AccessController . doPrivileged ( new PrivilegedAction < ClassLoader > ( ) { public ClassLoader run ( ) { return c . getClassLoader ( ) ; } } ) ; }
Get the classloader .