Home
last modified time | relevance | path

Searched refs:getBinding (Results 1 – 25 of 94) sorted by relevance

1234

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletScopesTest.java102 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(a))); in testIsRequestScopedPositive()
103 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(b))); in testIsRequestScopedPositive()
104 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(c))); in testIsRequestScopedPositive()
105 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(d))); in testIsRequestScopedPositive()
106 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(e))); in testIsRequestScopedPositive()
107 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(f))); in testIsRequestScopedPositive()
108 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(g))); in testIsRequestScopedPositive()
169 assertFalse(ServletScopes.isRequestScoped(injector.getBinding(a))); in testIsRequestScopedNegative()
170 assertFalse(ServletScopes.isRequestScoped(injector.getBinding(b))); in testIsRequestScopedNegative()
171 assertFalse(ServletScopes.isRequestScoped(injector.getBinding(c))); in testIsRequestScopedNegative()
[all …]
DFilterDefinitionTest.java44 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterInitAndConfig()
98 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterCreateDispatchDestroy()
161 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterCreateDispatchDestroySupressChain()
228 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testGetFilterIfMatching()
265 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testGetFilterIfMatchingNotMatching()
DServletDefinitionPathsTest.java70 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in servletPath()
160 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in pathInfoWithServletStyleMatching()
271 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in pathInfoWithRegexMatching()
/external/guice/extensions/grapher/test/com/google/inject/grapher/
DTransitiveDependencyVisitorTest.java58 Binding<?> binding = getBinding(Key.get(ConstructedClass.class)); in testVisitConstructor()
67 getBinding(Key.get(Integer.class, Names.named("number")), new ConvertedConstantModule()); in testVisitConvertedConstant()
74 Binding<?> binding = getBinding(Key.get(ConstructedClass.class), new InstanceModule()); in testVisitInstance()
82 Binding<?> binding = getBinding(Key.get(Interface.class), new HasDependenciesModule()); in testVisitInstance_instanceHasDependencies()
91 Binding<?> binding = getBinding(Key.get(Interface.class), new LinkedKeyModule()); in testVisitLinkedKey()
99 Binding<?> binding = getBinding(Key.get(new TypeLiteral<Provider<ConstructedClass>>() {})); in testVisitProviderBinding()
106 Binding<?> binding = getBinding(Key.get(ConstructedClass.class), new ProviderInstanceModule()); in testVisitProviderInstance()
114 Binding<?> binding = getBinding(Key.get(ConstructedClass.class), new ProviderKeyModule()); in testVisitProviderKey()
121 private Binding<?> getBinding(Key<?> key, Module... modules) { in getBinding() method in TransitiveDependencyVisitorTest
122 return Guice.createInjector(modules).getBinding(key); in getBinding()
/external/guice/core/test/com/google/inject/
DScopesTest.java668 assertTrue(Scopes.isSingleton(injector.getBinding(a)));
669 assertTrue(Scopes.isSingleton(injector.getBinding(b)));
670 assertTrue(Scopes.isSingleton(injector.getBinding(c)));
671 assertTrue(Scopes.isSingleton(injector.getBinding(d)));
672 assertTrue(Scopes.isSingleton(injector.getBinding(e)));
673 assertTrue(Scopes.isSingleton(injector.getBinding(f)));
674 assertTrue(Scopes.isSingleton(injector.getBinding(g)));
675 assertTrue(Scopes.isSingleton(injector.getBinding(h)));
676 assertTrue(Scopes.isSingleton(injector.getBinding(i)));
725 assertFalse(Scopes.isSingleton(injector.getBinding(a)));
[all …]
DImplicitBindingTest.java146 Binding v1 = injector.getBinding(Valid.class); in testCircularJitBindingsLeaveNoResidue()
147 Binding v2 = injector.getBinding(Valid2.class); in testCircularJitBindingsLeaveNoResidue()
148 Binding jv1 = injector.getBinding(JitValid.class); in testCircularJitBindingsLeaveNoResidue()
149 Binding jv2 = injector.getBinding(JitValid2.class); in testCircularJitBindingsLeaveNoResidue()
164 assertSame(v1, injector.getBinding(Valid.class)); in testCircularJitBindingsLeaveNoResidue()
165 assertSame(v2, injector.getBinding(Valid2.class)); in testCircularJitBindingsLeaveNoResidue()
168 assertSame(jv1, injector.getBinding(JitValid.class)); in testCircularJitBindingsLeaveNoResidue()
169 assertSame(jv2, injector.getBinding(JitValid2.class)); in testCircularJitBindingsLeaveNoResidue()
175 injector.getBinding(clazz); in assertFailure()
362 assertNotNull(injector.getBinding(Key.get(E.class))); in testRecursiveJitBindingsCleanupCorrectly()
DReflectionTest.java44 Binding<Foo> fooBinding = injector.getBinding(Key.get(Foo.class)); in testNormalBinding()
61 Binding<?> i = injector.getBinding(Key.get(int.class, I.class)); in testConstantBinding()
81 Binding<Foo> fooBinding = injector.getBinding(Key.get(Foo.class)); in testLinkedBinding()
DJitBindingsTest.java687 injector.getBinding(classes[i]).getProvider().get(); in ensureWorks()
697 private void ensureFails(Injector injector, GetBindingCheck getBinding, Class<?>... classes) { in ensureFails() argument
715 if (getBinding == GetBindingCheck.ALLOW_BINDING in ensureFails()
716 || getBinding == GetBindingCheck.ALLOW_BINDING_PROVIDER) { in ensureFails()
717 Binding<?> binding = injector.getBinding(classes[i]); in ensureFails()
720 if (getBinding != GetBindingCheck.ALLOW_BINDING_PROVIDER) { in ensureFails()
724 if (getBinding == GetBindingCheck.ALLOW_BINDING_PROVIDER) { in ensureFails()
732 injector.getBinding(classes[i]); in ensureFails()
761 injector.getBinding(classes[i]); in ensureInChild()
DProvisionListenerTest.java476 provision.getBinding().getProvider().get(); // AGH! in testCallingBindingDotGetProviderDotGet()
577 keys.add(provision.getBinding().getKey()); in onProvision()
583 if (provision.getBinding() instanceof InstanceBinding) { in onProvision()
584 Class<? super T> expected = provision.getBinding().getKey().getRawType(); in onProvision()
589 assertEquals(provision.getBinding().getKey().getRawType(), provisioned.getClass()); in onProvision()
659 provisionList.add(provision.getBinding().getKey().getRawType()); in onProvision()
690 totalList.add(provision.getBinding().getKey().getRawType());
812 assertEquals(notifyType, provision.getBinding().getKey().getRawType());
/external/guice/core/src/com/google/inject/internal/
DBindingBuilder.java75 BindingImpl<T> base = getBinding(); in to()
99 BindingImpl<T> base = getBinding(); in toInstance()
124 BindingImpl<T> base = getBinding(); in toProvider()
149 BindingImpl<T> base = getBinding(); in toProvider()
168 BindingImpl<T> base = getBinding(); in toConstructor()
196 return "BindingBuilder<" + getBinding().getKey().getTypeLiteral() + ">"; in toString()
DAbstractBindingBuilder.java62 protected BindingImpl<T> getBinding() { in getBinding() method in AbstractBindingBuilder
90 setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); in in()
96 setBinding(getBinding().withScoping(Scoping.forInstance(scope))); in in()
101 setBinding(getBinding().withScoping(Scoping.EAGER_SINGLETON)); in asEagerSingleton()
DInternalInjectorCreator.java234 return isEagerSingleton(injector, injector.getBinding(linkedBinding), stage); in isEagerSingleton()
265 public <T> Binding<T> getBinding(Key<T> key) { in getBinding() method in InternalInjectorCreator.ToolStageInjector
266 return this.delegateInjector.getBinding(key); in getBinding()
270 public <T> Binding<T> getBinding(Class<T> type) { in getBinding() method in InternalInjectorCreator.ToolStageInjector
271 return this.delegateInjector.getBinding(type); in getBinding()
DRealOptionalBinder.java312 if (bindingSelection.getBinding() != null) { in doInitialize()
313 target = bindingSelection.getBinding().getInternalFactory(); in doInitialize()
391 if (bindingSelection.getBinding() == null) { in doInitialize()
394 value = invokeJavaOptionalOf(bindingSelection.getBinding().getProvider()); in doInitialize()
424 BindingImpl<T> targetBinding = bindingSelection.getBinding(); in doInitialize()
465 if (bindingSelection.getBinding() == null) { in doInitialize()
468 value = Optional.of(bindingSelection.getBinding().getProvider()); in doInitialize()
502 if (bindingSelection.getBinding() != null) { in doInitialize()
503 delegate = bindingSelection.getBinding().getInternalFactory(); in doInitialize()
672 BindingImpl<T> getBinding() { in getBinding() method in RealOptionalBinder.BindingSelection
/external/guice/core/src/com/google/inject/
DScopes.java104 binding = injector.getBinding(linkedBinding.getLinkedKey()); in isSingleton()
111 binding = injector.getBinding(exposedBinding.getKey()); in isSingleton()
166 binding = injector.getBinding(linkedBinding.getLinkedKey()); in isScoped()
173 binding = injector.getBinding(exposedBinding.getKey()); in isScoped()
DInjector.java130 <T> Binding<T> getBinding(Key<T> key); in getBinding() method
142 <T> Binding<T> getBinding(Class<T> type); in getBinding() method
/external/guice/core/test/com/google/inject/spi/
DHasDependenciesTest.java44 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithDependencies()
60 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithoutDependencies()
75 ProviderInstanceBinding<?> binding = (ProviderInstanceBinding<?>) injector.getBinding(A.class); in testProvider()
DSpiBindingsTest.java263 Binding<Integer> binding = injector.getBinding(Key.get(Integer.class, Names.named("one"))); in testConvertedConstantBinding()
289 Binding<Provider<String>> binding = injector.getBinding(providerOfStringKey); in testProviderBinding()
425 Binding<Provider<String>> providerBinding = injector.getBinding(providerOfStringKey); in testExtensionSpi()
439 Binding<String> binding = injector.getBinding(String.class); in testExtensionSpi()
DModuleAnnotatedMethodScannerTest.java71 Binding<String> fooBinding = injector.getBinding(Key.get(String.class, named("foo-munged"))); in testScanning()
72 Binding<String> foo2Binding = injector.getBinding(Key.get(String.class, named("foo2-munged"))); in testScanning()
197 Binding<?> fooBinding = injector.getBinding(Key.get(clazz, named(originalName + "-munged")));
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DWasm.h68 return getBinding() == wasm::WASM_SYMBOL_BINDING_WEAK; in isBindingWeak()
72 return getBinding() == wasm::WASM_SYMBOL_BINDING_GLOBAL; in isBindingGlobal()
76 return getBinding() == wasm::WASM_SYMBOL_BINDING_LOCAL; in isBindingLocal()
79 unsigned getBinding() const { in getBinding() function
/external/deqp-deps/glslang/glslang/MachineIndependent/
Dreflection.h63 int getBinding() const in getBinding() function
72 name.c_str(), offset, glDefineType, size, index, getBinding(), stages ); in dump()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DInjectBindingRegistry.java84 B getBinding(Key key) { in getBinding() method in InjectBindingRegistry.BindingsCollection
203 ProvisionBinding binding = provisionBindings.getBinding(key); in getOrFindProvisionBinding()
236 MembersInjectionBinding binding = membersInjectionBindings.getBinding(key); in getOrFindMembersInjectionBinding()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCSymbolELF.cpp67 unsigned MCSymbolELF::getBinding() const { in getBinding() function in llvm::MCSymbolELF
97 if (Type == ELF::STT_SECTION && getBinding() != ELF::STB_LOCAL) in setType()
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderTest.java587 (HasDependencies) bindInjector.getBinding(Key.get(remoteProviderOfFoo)); in testDependencies_Bind()
590 bindInjector.getBinding( in testDependencies_Bind()
597 hasDependencies = (HasDependencies) bindInjector.getBinding(DependentRemoteProvider.class); in testDependencies_Bind()
631 (HasDependencies) providesInjector.getBinding(Key.get(remoteProviderOfFoo)); in testDependencies_Provides()
635 providesInjector.getBinding( in testDependencies_Provides()
640 providesInjector.getBinding( in testDependencies_Provides()
673 HasDependencies hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor()
678 hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor()
683 hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor()
688 hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor()
DThrowingProviderTest.java479 (HasDependencies) bindInjector.getBinding(Key.get(remoteProviderOfString)); in testDependencies_Bind()
482 bindInjector.getBinding( in testDependencies_Bind()
489 hasDependencies = (HasDependencies) bindInjector.getBinding(DependentRemoteProvider.class); in testDependencies_Bind()
530 (HasDependencies) providesInjector.getBinding(Key.get(remoteProviderOfString)); in testDependencies_Provides()
534 providesInjector.getBinding( in testDependencies_Provides()
539 providesInjector.getBinding( in testDependencies_Provides()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyBuilder.java97 Binding binding = block.getBinding(); in addMessage()
126 Binding binding = block.getBinding(); in addEnum()

1234