public class EagerCycleFinder extends Object
This only finds cycles that are necessary to resolve the dependencies for the current origin Ginjector.
Reports errors including the detected cycle and the path that led here from the unresolved
bindings in the ginjector to the global ErrorManager
.
See BindingResolver
for how this fits into the overall algorithm for resolution.
Constructor and Description |
---|
EagerCycleFinder(ErrorManager errorManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
findAndReportCycles(DependencyGraph graph)
Detects cycles in the given graph.
|
@Inject public EagerCycleFinder(ErrorManager errorManager)
public boolean findAndReportCycles(DependencyGraph graph)
true
if any cycles were detectedCopyright © 2008–2018. All rights reserved.