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