public static ClassLoader getClassLoaderOfObject ( Object o ) { if ( o == null ) { throw new NullPointerException ( "Argument cannot be null" ) ; } return getClassLoaderOfClass ( o . getClass ( ) ) ; }
Get the class loader of the object passed as argument . Return the system class loader if appropriate .