Ejemplo n.º 1
0
 @Override
 public void log(InjectionNodeLogger logger) {
   logger.append("Listeners{");
   logger.pushIndent();
   for (Map.Entry<ASTType, Set<ASTMethod>> entry : listeners.entrySet()) {
     logger.append(entry.getKey() + " -> " + "(" + Joiner.on(", ").join(entry.getValue()) + ")");
   }
   logger.popIndent();
   logger.append("\n}");
 }
 private void logInjectionNodes(InjectionNode injectionNode) {
   StringBuilder builder = new StringBuilder();
   builder.append("Injection Nodes:\n");
   InjectionNodeLogger logger = new InjectionNodeLogger(builder, injectionNode);
   while (logger.containsUnvisitedNodes()) {
     InjectionNode node = logger.next();
     node.log(logger);
     logger.append("\n");
   }
   log.debug(builder.toString());
 }
 @Override
 public void log(InjectionNodeLogger logger) {
   logger.append(this.getClass().getName());
 }