src/main/java/org/jboss/util/Classes.java
public static void describe(StringBuffer buffer, Class clazz)
   {
      if (clazz == null)
         buffer.append("**null**");
      else
      {
         buffer.append("{class=").append(clazz.getName());
         Class[] intfs = clazz.getInterfaces();
         if (intfs.length > 0)
         {
            buffer.append(" intfs=");
            for (int i = 0; i < intfs.length; ++i)
            {
               buffer.append(intfs[i].getName());
               if (i < intfs.length-1)
                  buffer.append(", ");
            }
         }
         buffer.append("}");
      }
   }
public static void describe(StringBuffer buffer, Class clazz)
   {
      if (clazz == null)
         buffer.append("**null**");
      else
      {
         buffer.append("{class=").append(clazz.getName());
         Class[] intfs = clazz.getInterfaces();
         if (intfs.length > 0)
         {
            buffer.append(" intfs=");
            for (int i = 0; i < intfs.length; ++i)
            {
               buffer.append(intfs[i].getName());
               if (i < intfs.length-1)
                  buffer.append(", ");
            }
         }
         buffer.append("}");
      }
   }
public static void describe ( StringBuffer buffer , Class clazz ) { if ( clazz == null ) buffer . append ( "**null**" ) ; else { buffer . append ( "{class=" ) . append ( clazz . getName ( ) ) ; Class [ ] intfs = clazz . getInterfaces ( ) ; if ( intfs . length > 0 ) { buffer . append ( " intfs=" ) ; for ( int i = 0 ; i < intfs . length ; ++ i ) { buffer . append ( intfs [ i ] . getName ( ) ) ; if ( i < intfs . length - 1 ) buffer . append ( ", " ) ; } } buffer . append ( "}" ) ; } }
Describe the class

@param buffer the string buffer
@param clazz the clazz
Describe the class