private void traceGinjectorMethods ( ) { TypeLiteral < ? > ginjectorInterface = rootBindings . getGinjectorInterface ( ) ; for ( MethodLiteral < ? , Method > method : memberCollector . getMethods ( ginjectorInterface ) ) { if ( ! guiceUtil . isMemberInject ( method ) ) { // It's a constructor method, so just trace to the key that's // constructed. Key < ? > key = guiceUtil . getKey ( method ) ; PrettyPrinter . log ( logger , TreeLogger . DEBUG , "ROOT -> %s:%s [%s]" , rootBindings , key , method ) ; traceKey ( key , rootBindings ) ; } else { Key < ? > sourceKey = guiceUtil . getKey ( method ) ; getReachableMemberInjects ( rootBindings ) . add ( sourceKey . getTypeLiteral ( ) ) ; for ( Dependency dependency : guiceUtil . getMemberInjectionDependencies ( sourceKey , sourceKey . getTypeLiteral ( ) ) ) { Key < ? > targetKey = dependency . getTarget ( ) ; PrettyPrinter . log ( logger , TreeLogger . DEBUG , "ROOT -> %s:%s [%s]" , rootBindings , targetKey , method ) ; traceKey ( targetKey , rootBindings ) ; } } } }
Traces out bindings that are reachable from a GInjector method .