Searched refs:getExistingBinding (Results 1 – 11 of 11) sorted by relevance
29 assertSame(entry.getValue(), injector.getExistingBinding(entry.getKey())); in testExistingBinding()36 binding = injector.getExistingBinding(Key.get(Foo.class)); in testExistingBinding()43 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Foo>>() {})); in testExistingBinding()49 binding = injector.getExistingBinding(Key.get(Baz.class)); in testExistingBinding()57 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Baz>>() {})); in testExistingBinding()63 assertNull(injector.getExistingBinding(Key.get(Bar.class))); in testExistingBinding()66 assertNull(injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Bar>>() {}))); in testExistingBinding()
196 assertNull(injector.getExistingBinding(Key.get(clazz, named(originalName))));280 assertNull(sibling.getExistingBinding(Key.get(String.class, named("foo"))));281 assertNull(sibling.getExistingBinding(Key.get(String.class, named("foo-munged"))));
356 assertNull(injector.getExistingBinding(Key.get(A.class))); in testRecursiveJitBindingsCleanupCorrectly()357 assertNull(injector.getExistingBinding(Key.get(B.class))); in testRecursiveJitBindingsCleanupCorrectly()358 assertNull(injector.getExistingBinding(Key.get(C.class))); in testRecursiveJitBindingsCleanupCorrectly()359 assertNull(injector.getExistingBinding(Key.get(D.class))); in testRecursiveJitBindingsCleanupCorrectly()
275 public <T> Binding<T> getExistingBinding(Key<T> key) { in getExistingBinding() method in InternalInjectorCreator.ToolStageInjector276 return this.delegateInjector.getExistingBinding(key); in getExistingBinding()
615 actualBinding = injector.getExistingBinding(getKeyForActualBinding()); in initialize()616 defaultBinding = injector.getExistingBinding(getKeyForDefaultBinding()); in initialize()618 BindingImpl<T> userBinding = injector.getExistingBinding(key); in initialize()
78 BindingImpl<?> original = injector.getExistingBinding(key); in putBinding()
448 Binding<V> valueBinding = injector.getExistingBinding(valueKey); in tryInitialize()1192 Binding<V> valueBinding = injector.getExistingBinding(valueKey); in initialize()1305 Binding<Map<K, V>> mapBinding = injector.getExistingBinding(mapKey); in initialize()
171 public <T> BindingImpl<T> getExistingBinding(Key<T> key) { in getExistingBinding() method in InjectorImpl195 if (getExistingBinding(providedKey) != null) { in getExistingBinding()
153 <T> Binding<T> getExistingBinding(Key<T> key); in getExistingBinding() method
293 assertNull(injector.getExistingBinding(Key.get(JitBinding.class))); in testOptionalBinderDependsOnJitBinding()308 assertNotNull(injector.getExistingBinding(Key.get(JitBinding.class))); in testOptionalBinderDependsOnJitBinding()336 assertNotNull(injector.getExistingBinding(Key.get(JitBinding.class))); in testOptionalBinderDependsOnJitBinding()
819 assertNull(injector.getExistingBinding(Key.get(String.class, named("test")))); in testOverridesApplyOriginalScanners()