Home
last modified time | relevance | path

Searched refs:getExistingBinding (Results 1 – 11 of 11) sorted by relevance

/external/guice/core/test/com/google/inject/spi/
DInjectorSpiTest.java29 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()
DModuleAnnotatedMethodScannerTest.java196 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"))));
/external/guice/core/test/com/google/inject/
DImplicitBindingTest.java356 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()
/external/guice/core/src/com/google/inject/internal/
DInternalInjectorCreator.java275 public <T> Binding<T> getExistingBinding(Key<T> key) { in getExistingBinding() method in InternalInjectorCreator.ToolStageInjector
276 return this.delegateInjector.getExistingBinding(key); in getExistingBinding()
DRealOptionalBinder.java615 actualBinding = injector.getExistingBinding(getKeyForActualBinding()); in initialize()
616 defaultBinding = injector.getExistingBinding(getKeyForDefaultBinding()); in initialize()
618 BindingImpl<T> userBinding = injector.getExistingBinding(key); in initialize()
DAbstractBindingProcessor.java78 BindingImpl<?> original = injector.getExistingBinding(key); in putBinding()
DRealMapBinder.java448 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()
DInjectorImpl.java171 public <T> BindingImpl<T> getExistingBinding(Key<T> key) { in getExistingBinding() method in InjectorImpl
195 if (getExistingBinding(providedKey) != null) { in getExistingBinding()
/external/guice/core/src/com/google/inject/
DInjector.java153 <T> Binding<T> getExistingBinding(Key<T> key); in getExistingBinding() method
/external/guice/core/test/com/google/inject/internal/
DOptionalBinderTest.java293 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()
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java819 assertNull(injector.getExistingBinding(Key.get(String.class, named("test")))); in testOverridesApplyOriginalScanners()