/external/guice/core/test/com/google/inject/ |
D | TypeConversionTest.java | 79 bindConstant().annotatedWith(NumericValue.class).to("5"); in testOneConstantInjection() 95 bindConstant().annotatedWith(NumericValue.class).to("5"); in testConstantInjection() 96 bindConstant().annotatedWith(BooleanValue.class).to("true"); in testConstantInjection() 97 bindConstant().annotatedWith(EnumValue.class).to("TEE"); in testConstantInjection() 98 bindConstant().annotatedWith(ClassName.class).to(Foo.class.getName()); in testConstantInjection() 128 bindConstant().annotatedWith(NumericValue.class).to("5"); in testConstantInjectionWithExplicitBindingsRequired() 129 bindConstant().annotatedWith(BooleanValue.class).to("true"); in testConstantInjectionWithExplicitBindingsRequired() 130 bindConstant().annotatedWith(EnumValue.class).to("TEE"); in testConstantInjectionWithExplicitBindingsRequired() 131 bindConstant().annotatedWith(ClassName.class).to(Foo.class.getName()); in testConstantInjectionWithExplicitBindingsRequired() 170 bindConstant().annotatedWith(NumericValue.class).to("invalid"); in configure() [all …]
|
D | RequestInjectionTest.java | 55 bindConstant().annotatedWith(ForMethod.class).to("test"); in testInjectMembers() 56 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() 87 bindConstant().annotatedWith(ForMethod.class).to("test"); in testInjectMembersAndStatics() 88 bindConstant().annotatedWith(ForField.class).to(5); in testInjectMembersAndStatics()
|
D | BindingAnnotationTest.java | 37 bindConstant().annotatedWith(Blue.class).to("foo"); in testAnnotationWithValueMatchesKeyWithTypeOnly() 53 bindConstant().annotatedWith(Blue.class).to("foo"); in testRequireExactAnnotationsDisablesFallback() 71 bindConstant().annotatedWith(Red.class).to("foo"); in testRequireExactAnnotationsDoesntBreakIfDefaultsExist() 83 bindConstant().annotatedWith(Color.class).to("foo"); in testRequireExactAnnotationsRequireAllOptionals() 101 bindConstant().annotatedWith(createBlue(6)).to("six"); in testAnnotationWithValueThatDoesntMatch()
|
D | InjectorTest.java | 98 bindConstant().annotatedWith(S.class).to("test"); in createFooInjector() 99 bindConstant().annotatedWith(I.class).to(5); in createFooInjector() 116 bindConstant().annotatedWith(I.class).to(5); 208 bindConstant().annotatedWith(S.class).to("test"); 209 bindConstant().annotatedWith(I.class).to(5);
|
D | BinderTest.java | 152 bindConstant(); in testDanglingConstantBinding() 183 bindConstant().annotatedWith(Names.named("nullOne")).to(none); in testBindingNullConstant() 208 assertEquals("ConstantBindingBuilder", bindConstant().toString()); in testToStringOnBinderApi() 210 bindConstant().annotatedWith(Names.named("b")).toString()); in testToStringOnBinderApi() 230 assertNotSerializable(bindConstant()); in testNothingIsSerializableInBinderApi() 231 assertNotSerializable(bindConstant().annotatedWith(Names.named("b"))); in testNothingIsSerializableInBinderApi()
|
D | ProvisionExceptionsTest.java | 39 bindConstant().annotatedWith(Names.named("runtime")).to(true); in testConstructorRuntimeException() 61 bindConstant().annotatedWith(Names.named("runtime")).to(false); in testConstructorCheckedException()
|
D | PerformanceComparison.java | 116 bindConstant().annotatedWith(I.class).to(5); 117 bindConstant().annotatedWith(S.class).to("test");
|
D | ReflectionTest.java | 54 bindConstant().annotatedWith(I.class).to(5); in testConstantBinding()
|
D | BindingTest.java | 95 bindConstant().annotatedWith(named("name")).to("Bob"); in configure()
|
/external/guice/core/test/com/google/inject/spi/ |
D | ElementsTest.java | 160 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 …]
|
D | SpiBindingsTest.java | 59 bindConstant().annotatedWith(Names.named("one")).to(1); in testBindConstant() 223 bindConstant().annotatedWith(Names.named("one")).to(1); in testConstantBinding() 247 bindConstant().annotatedWith(Names.named("one")).to("1"); in testConvertedConstantBinding()
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ScopeRequestIntegrationTest.java | 62 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); in testNonHttpRequestScopedCallable() 95 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); in testWrongValueClasses() 113 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); in testNullReplacement()
|
/external/guice/core/src/com/google/inject/ |
D | AbstractModule.java | 114 protected AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in AbstractModule 115 return binder().bindConstant(); in bindConstant()
|
D | PrivateModule.java | 176 protected final AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in PrivateModule 177 return binder().bindConstant(); in bindConstant()
|
D | Binder.java | 254 AnnotatedConstantBindingBuilder bindConstant(); in bindConstant() method
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/ |
D | BackToTheFutureModule.java | 45 bindConstant().annotatedWith(Names.named("year")).to("1955"); in configure()
|
/external/guice/extensions/jmx/test/com/google/inject/tools/jmx/ |
D | JmxTest.java | 58 bindConstant().annotatedWith(Names.named("port")).to(8080); in configure()
|
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/ |
D | JpaPersistModule.java | 63 bindConstant().annotatedWith(Jpa.class).to(jpaUnit); in configurePersistence()
|
/external/guice/core/test/com/google/inject/name/ |
D | NamedEquivalanceTest.java | 145 bindConstant().annotatedWith(annotation).to("bar"); in moduleWithAnnotation()
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
D | TransitiveDependencyVisitorTest.java | 182 bindConstant().annotatedWith(Names.named("number")).to("2008"); in configure()
|
/external/guice/core/test/com/google/inject/util/ |
D | OverrideModuleTest.java | 94 bindConstant().annotatedWith(named("Test")).to("A"); in testOverrideConstant() 100 bindConstant().annotatedWith(named("Test")).to("B"); in testOverrideConstant()
|
/external/guice/core/src/com/google/inject/spi/ |
D | Elements.java | 388 public AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in Elements.RecordingBinder
|
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | MapBinderTest.java | 677 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependencies() 714 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependenciesInToolStage()
|
D | MultibinderTest.java | 512 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependencies() 536 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependenciesInToolStage()
|
D | OptionalBinderTest.java | 849 bindConstant().annotatedWith(Names.named("b")).to("B"); in testDependencies_both() 866 bindConstant().annotatedWith(Names.named("b")).to("B"); in testDependencies_actual()
|