use of com.google.gwt.inject.rebind.GinScope in project google-gin by gwtplus.
the class ReachabilityAnalyzer method doTraceEagerSingletons.
private void doTraceEagerSingletons(GinjectorBindings bindings) {
for (Map.Entry<Key<?>, Binding> entry : bindings.getBindings()) {
Key<?> key = entry.getKey();
Binding binding = entry.getValue();
GinScope scope = bindings.determineScope(key);
if (scope == GinScope.EAGER_SINGLETON) {
PrettyPrinter.log(logger, TreeLogger.DEBUG, "ROOT -> %s:%s [eager singleton: %s]", bindings, key, binding);
traceKey(key, bindings);
}
}
for (GinjectorBindings child : bindings.getChildren()) {
doTraceEagerSingletons(child);
}
}
Aggregations