Home
last modified time | relevance | path

Searched refs:toConstructor (Results 1 – 12 of 12) sorted by relevance

/external/guice/core/test/com/google/inject/
DBindingTest.java232 bind(Object.class).toConstructor(constructor); in testToConstructorBinding()
247 bind(s).toConstructor(constructor, new TypeLiteral<C<Stage>>() {}); in testToConstructorBindingsOnParameterizedTypes()
248 bind(i).toConstructor(constructor, new TypeLiteral<C<Injector>>() {}); in testToConstructorBindingsOnParameterizedTypes()
269 bind(Object.class).toConstructor(constructor); in testToConstructorBindingsFailsOnRawTypes()
295 bind(Object.class).toConstructor(constructor); in testToConstructorAndMethodInterceptors()
312 bind(E.class).toConstructor(constructor); in testInaccessibleConstructor()
330 bind(d).toConstructor(constructor); in testToConstructorAndScopes()
331 bind(s).toConstructor(constructor).in(Singleton.class); in testToConstructorAndScopes()
332 bind(n).toConstructor(constructor).in(Scopes.NO_SCOPE); in testToConstructorAndScopes()
366 bind(Object.class).toConstructor(constructor); in testToConstructorSpiData()
[all …]
DDuplicateBindingsTest.java381 bind(Foo.class).toConstructor(cFoo); in configure()
433 bind(Foo.class).annotatedWith(named("constructor")).toConstructor(cFoo); in configure()
466 bind(Foo.class).annotatedWith(named("constructor")).toConstructor(cFoo).in(scope); in configure()
495 bind(Foo.class).annotatedWith(named("constructor")).toConstructor(cFoo).in(scope); in configure()
DRequireAtInjectOnConstructorsTest.java184 .toConstructor(ManyConstructors.class.getDeclaredConstructor()); in testRequireAtInjectStillAllowsToConstructorBindings()
DProvisionListenerTest.java309 … bind(Foo.class).annotatedWith(named("cxtr")).toConstructor(Foo.class.getDeclaredConstructor()); in testNotifiedKeysOfAllBindTypes()
/external/guice/core/src/com/google/inject/binder/
DLinkedBindingBuilder.java92 <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor); in toConstructor() method
99 <S extends T> ScopedBindingBuilder toConstructor( in toConstructor() method
/external/guice/core/src/com/google/inject/internal/
DBindingBuilder.java143 public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor) { in toConstructor() method in BindingBuilder
144 return toConstructor(constructor, TypeLiteral.get(constructor.getDeclaringClass())); in toConstructor()
147 public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor, in toConstructor() method in BindingBuilder
DConstructorBindingImpl.java216 getScoping().applyTo(binder.withSource(getSource()).bind(getKey()).toConstructor( in applyTo()
/external/guice/core/test/com/google/inject/spi/
DElementsTest.java1164 bind(A.class).toConstructor(aConstructor); in testBindToConstructor()
1165 bind(B.class).toConstructor(bConstructor, new TypeLiteral<B<Integer>>() {}) in testBindToConstructor()
1221 bind(C.class).toConstructor(constructor); in testBindToMalformedConstructor()
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DThrowingProviderBinder.java229 binder.bind(typeKey).toConstructor((Constructor) cxtor).in(Scopes.NO_SCOPE); in providing()
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DMultibinderTest.java838 multibinder.addBinding().toConstructor( in testModuleOverrideRepeatedInstallsAndMultibindings_toConstructor()
840 multibinder.addBinding().toConstructor( in testModuleOverrideRepeatedInstallsAndMultibindings_toConstructor()
DOptionalBinderTest.java1065 b.setDefault().toConstructor( in testModuleOverrideRepeatedInstalls_toConstructor()
1067 b.setBinding().toConstructor( in testModuleOverrideRepeatedInstalls_toConstructor()
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider2.java720 .toConstructor(constructor, (TypeLiteral)data.implementationType) in getBindingFromNewInjector()