Home
last modified time | relevance | path

Searched refs:bindConstant (Results 1 – 25 of 27) sorted by relevance

12

/external/guice/core/test/com/google/inject/
DTypeConversionTest.java84 bindConstant().annotatedWith(NumericValue.class).to("5"); in testOneConstantInjection()
103 bindConstant().annotatedWith(NumericValue.class).to("5"); in testConstantInjection()
104 bindConstant().annotatedWith(BooleanValue.class).to("true"); in testConstantInjection()
105 bindConstant().annotatedWith(EnumValue.class).to("TEE"); in testConstantInjection()
106 bindConstant().annotatedWith(ClassName.class).to(Foo.class.getName()); in testConstantInjection()
138 bindConstant().annotatedWith(NumericValue.class).to("5"); in testConstantInjectionWithExplicitBindingsRequired()
139 bindConstant().annotatedWith(BooleanValue.class).to("true"); in testConstantInjectionWithExplicitBindingsRequired()
140 bindConstant().annotatedWith(EnumValue.class).to("TEE"); in testConstantInjectionWithExplicitBindingsRequired()
141 bindConstant().annotatedWith(ClassName.class).to(Foo.class.getName()); in testConstantInjectionWithExplicitBindingsRequired()
181 bindConstant().annotatedWith(NumericValue.class).to("invalid"); in configure()
[all …]
DRequestInjectionTest.java54 bindConstant().annotatedWith(ForMethod.class).to("test"); in testInjectMembers()
55 bindConstant().annotatedWith(ForField.class).to(5); in testInjectMembers()
71 bindConstant().annotatedWith(ForMethod.class).to("test"); in testInjectStatics()
72 bindConstant().annotatedWith(ForField.class).to(5); in testInjectStatics()
88 bindConstant().annotatedWith(ForMethod.class).to("test"); in testInjectMembersAndStatics()
89 bindConstant().annotatedWith(ForField.class).to(5); in testInjectMembersAndStatics()
DBindingAnnotationTest.java36 bindConstant().annotatedWith(Blue.class).to("foo"); in testAnnotationWithValueMatchesKeyWithTypeOnly()
53 bindConstant().annotatedWith(Blue.class).to("foo"); in testRequireExactAnnotationsDisablesFallback()
75 bindConstant().annotatedWith(Red.class).to("foo"); in testRequireExactAnnotationsDoesntBreakIfDefaultsExist()
89 bindConstant().annotatedWith(Color.class).to("foo"); in testRequireExactAnnotationsRequireAllOptionals()
111 bindConstant().annotatedWith(createBlue(6)).to("six"); in testAnnotationWithValueThatDoesntMatch()
DInjectorTest.java98 bindConstant().annotatedWith(S.class).to("test"); in createFooInjector()
99 bindConstant().annotatedWith(I.class).to(5); in createFooInjector()
118 bindConstant().annotatedWith(I.class).to(5);
218 bindConstant().annotatedWith(S.class).to("test");
219 bindConstant().annotatedWith(I.class).to(5);
DBinderTest.java189 bindConstant(); in testDanglingConstantBinding()
227 bindConstant().annotatedWith(Names.named("nullOne")).to(none); in testBindingNullConstant()
256 assertEquals("ConstantBindingBuilder", bindConstant().toString()); in testToStringOnBinderApi()
259 bindConstant().annotatedWith(Names.named("b")).toString()); in testToStringOnBinderApi()
282 assertNotSerializable(bindConstant()); in testNothingIsSerializableInBinderApi()
283 assertNotSerializable(bindConstant().annotatedWith(Names.named("b"))); in testNothingIsSerializableInBinderApi()
DProvisionExceptionsTest.java39 bindConstant().annotatedWith(Names.named("runtime")).to(true); in testConstructorRuntimeException()
66 bindConstant().annotatedWith(Names.named("runtime")).to(false); in testConstructorCheckedException()
DPerformanceComparison.java121 bindConstant().annotatedWith(I.class).to(5);
122 bindConstant().annotatedWith(S.class).to("test");
DReflectionTest.java57 bindConstant().annotatedWith(I.class).to(5); in testConstantBinding()
DBindingTest.java106 bindConstant().annotatedWith(named("name")).to("Bob"); in configure()
DProvisionListenerTest.java391 bindConstant().annotatedWith(named("constant")).to("MyConstant"); in testNotifiedKeysOfAllBindTypes()
/external/guice/core/test/com/google/inject/spi/
DElementsTest.java160 bindConstant().annotatedWith(SampleAnnotation.class).to("A"); in testBindConstantAnnotations()
161 bindConstant().annotatedWith(Names.named("Bee")).to("B"); in testBindConstantAnnotations()
189 bindConstant().annotatedWith(Names.named("String")).to("A"); in testBindConstantTypes()
190 bindConstant().annotatedWith(Names.named("int")).to(2); in testBindConstantTypes()
191 bindConstant().annotatedWith(Names.named("long")).to(3L); in testBindConstantTypes()
192 bindConstant().annotatedWith(Names.named("boolean")).to(false); in testBindConstantTypes()
193 bindConstant().annotatedWith(Names.named("double")).to(5.0d); in testBindConstantTypes()
194 bindConstant().annotatedWith(Names.named("float")).to(6.0f); in testBindConstantTypes()
195 bindConstant().annotatedWith(Names.named("short")).to((short) 7); in testBindConstantTypes()
196 bindConstant().annotatedWith(Names.named("char")).to('h'); in testBindConstantTypes()
[all …]
DSpiBindingsTest.java56 bindConstant().annotatedWith(Names.named("one")).to(1); in testBindConstant()
231 bindConstant().annotatedWith(Names.named("one")).to(1); in testConstantBinding()
259 bindConstant().annotatedWith(Names.named("one")).to("1"); in testConvertedConstantBinding()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DScopeRequestIntegrationTest.java60 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); in testNonHttpRequestScopedCallable()
104 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); in testWrongValueClasses()
129 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); in testNullReplacement()
/external/guice/core/src/com/google/inject/
DAbstractModule.java97 protected AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in AbstractModule
98 return binder().bindConstant(); in bindConstant()
DPrivateModule.java165 protected final AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in PrivateModule
166 return binder().bindConstant(); in bindConstant()
DBinder.java222 AnnotatedConstantBindingBuilder bindConstant(); in bindConstant() method
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
DBackToTheFutureModule.java44 bindConstant().annotatedWith(Names.named("year")).to("1955"); in configure()
/external/guice/extensions/jmx/test/com/google/inject/tools/jmx/
DJmxTest.java55 bindConstant().annotatedWith(Names.named("port")).to(8080); in configure()
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
DJpaPersistModule.java59 bindConstant().annotatedWith(Jpa.class).to(jpaUnit); in configurePersistence()
/external/guice/core/test/com/google/inject/name/
DNamedEquivalanceTest.java156 bindConstant().annotatedWith(annotation).to("bar"); in moduleWithAnnotation()
/external/guice/extensions/grapher/test/com/google/inject/grapher/
DTransitiveDependencyVisitorTest.java193 bindConstant().annotatedWith(Names.named("number")).to("2008"); in configure()
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java95 bindConstant().annotatedWith(named("Test")).to("A"); in testOverrideConstant()
103 bindConstant().annotatedWith(named("Test")).to("B"); in testOverrideConstant()
/external/guice/core/src/com/google/inject/spi/
DElements.java400 public AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in Elements.RecordingBinder
/external/guice/core/test/com/google/inject/internal/
DMultibinderTest.java683 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependencies()
711 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependenciesInToolStage()
DMapBinderTest.java906 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependencies()
961 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependenciesInToolStage()

12