Пример #1
0
 public static <T> Provider<T> outOfScope(final Key<T> key) {
   return () -> {
     throw new OutOfScopeException(key.toString());
   };
 }
Пример #2
0
 @Override
 public void describeTo(Description description) {
   description.appendText("Guice injected instance of " + typeKey.toString());
 }