Searched refs:toConstructor (Results 1 – 12 of 12) sorted by relevance
232 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 …]
381 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()
184 .toConstructor(ManyConstructors.class.getDeclaredConstructor()); in testRequireAtInjectStillAllowsToConstructorBindings()
309 … bind(Foo.class).annotatedWith(named("cxtr")).toConstructor(Foo.class.getDeclaredConstructor()); in testNotifiedKeysOfAllBindTypes()
92 <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor); in toConstructor() method99 <S extends T> ScopedBindingBuilder toConstructor( in toConstructor() method
143 public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor) { in toConstructor() method in BindingBuilder144 return toConstructor(constructor, TypeLiteral.get(constructor.getDeclaringClass())); in toConstructor()147 public <S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor, in toConstructor() method in BindingBuilder
216 getScoping().applyTo(binder.withSource(getSource()).bind(getKey()).toConstructor( in applyTo()
1164 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()
229 binder.bind(typeKey).toConstructor((Constructor) cxtor).in(Scopes.NO_SCOPE); in providing()
838 multibinder.addBinding().toConstructor( in testModuleOverrideRepeatedInstallsAndMultibindings_toConstructor()840 multibinder.addBinding().toConstructor( in testModuleOverrideRepeatedInstallsAndMultibindings_toConstructor()
1065 b.setDefault().toConstructor( in testModuleOverrideRepeatedInstalls_toConstructor()1067 b.setBinding().toConstructor( in testModuleOverrideRepeatedInstalls_toConstructor()
720 .toConstructor(constructor, (TypeLiteral)data.implementationType) in getBindingFromNewInjector()