protected static void appendClassInfo ( StringBuffer buffer , Class clazz ) { buffer . append ( "[class=" ) . append ( clazz . getName ( ) ) ; buffer . append ( " classloader=" ) . append ( clazz . getClassLoader ( ) ) ; buffer . append ( " interfaces={" ) ; Class [ ] interfaces = clazz . getInterfaces ( ) ; for ( int i = 0 ; i < interfaces . length ; ++ i ) { if ( i > 0 ) buffer . append ( ", " ) ; buffer . append ( "interface=" ) . append ( interfaces [ i ] . getName ( ) ) ; buffer . append ( " classloader=" ) . append ( interfaces [ i ] . getClassLoader ( ) ) ; } buffer . append ( "}]" ) ; }
Append Class Info