/external/guice/core/test/com/google/inject/ |
D | TypeConversionTest.java | 84 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 …]
|
D | RequestInjectionTest.java | 54 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()
|
D | BindingAnnotationTest.java | 36 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()
|
D | InjectorTest.java | 98 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);
|
D | BinderTest.java | 189 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()
|
D | ProvisionExceptionsTest.java | 39 bindConstant().annotatedWith(Names.named("runtime")).to(true); in testConstructorRuntimeException() 66 bindConstant().annotatedWith(Names.named("runtime")).to(false); in testConstructorCheckedException()
|
D | PerformanceComparison.java | 121 bindConstant().annotatedWith(I.class).to(5); 122 bindConstant().annotatedWith(S.class).to("test");
|
D | ReflectionTest.java | 57 bindConstant().annotatedWith(I.class).to(5); in testConstantBinding()
|
D | BindingTest.java | 106 bindConstant().annotatedWith(named("name")).to("Bob"); in configure()
|
D | ProvisionListenerTest.java | 391 bindConstant().annotatedWith(named("constant")).to("MyConstant"); in testNotifiedKeysOfAllBindTypes()
|
/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 | 56 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/ |
D | ScopeRequestIntegrationTest.java | 60 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/ |
D | AbstractModule.java | 97 protected AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in AbstractModule 98 return binder().bindConstant(); in bindConstant()
|
D | PrivateModule.java | 165 protected final AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in PrivateModule 166 return binder().bindConstant(); in bindConstant()
|
D | Binder.java | 222 AnnotatedConstantBindingBuilder bindConstant(); in bindConstant() method
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/ |
D | BackToTheFutureModule.java | 44 bindConstant().annotatedWith(Names.named("year")).to("1955"); in configure()
|
/external/guice/extensions/jmx/test/com/google/inject/tools/jmx/ |
D | JmxTest.java | 55 bindConstant().annotatedWith(Names.named("port")).to(8080); in configure()
|
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/ |
D | JpaPersistModule.java | 59 bindConstant().annotatedWith(Jpa.class).to(jpaUnit); in configurePersistence()
|
/external/guice/core/test/com/google/inject/name/ |
D | NamedEquivalanceTest.java | 156 bindConstant().annotatedWith(annotation).to("bar"); in moduleWithAnnotation()
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
D | TransitiveDependencyVisitorTest.java | 193 bindConstant().annotatedWith(Names.named("number")).to("2008"); in configure()
|
/external/guice/core/test/com/google/inject/util/ |
D | OverrideModuleTest.java | 95 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/ |
D | Elements.java | 400 public AnnotatedConstantBindingBuilder bindConstant() { in bindConstant() method in Elements.RecordingBinder
|
/external/guice/core/test/com/google/inject/internal/ |
D | MultibinderTest.java | 683 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependencies() 711 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependenciesInToolStage()
|
D | MapBinderTest.java | 906 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependencies() 961 bindConstant().annotatedWith(Names.named("b")).to("B"); in testMultibinderDependenciesInToolStage()
|