예제 #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());
 }