Пример #1
0
 private void debug(final DebugBuilder debug, final Object object) {
   if (object instanceof DebuggableWithTitle) {
     final DebuggableWithTitle d = (DebuggableWithTitle) object;
     debug.startSection(d.debugTitle());
     d.debugData(debug);
     debug.endSection();
   } else {
     debug.appendln("no debug for " + object);
   }
 }
Пример #2
0
 @Override
 public void debugAll(final DebugBuilder debug) {
   debug.startSection("Isis Context Snapshot");
   debug.appendln(debugSnapshot);
   debug.endSection();
 }