Skip to content

Commit

Permalink
re-install scope binding after reset
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanenicolas committed Aug 23, 2017
1 parent 729136e commit 44a841a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toothpick-runtime/src/main/java/toothpick/ScopeImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ protected void reset() {
mapClassesToNamedBoundProviders.clear();
mapClassesToUnNamedBoundProviders.clear();
hasTestModules = false;
//it's always possible to get access to the scope that contains an injected object.
installBoundProvider(Scope.class, null, new InternalProviderImpl<>(this), false);
}

private static class ClassNameComparator implements Comparator<Class> {
Expand Down

0 comments on commit 44a841a

Please sign in to comment.