Searched refs:bindConstant (Results 1 - 25 of 28) sorted by relevance

12

/external/guice/core/test/com/google/inject/
H A DBindingAnnotationTest.java37 bindConstant().annotatedWith(Blue.class).to("foo");
53 bindConstant().annotatedWith(Blue.class).to("foo");
71 bindConstant().annotatedWith(Red.class).to("foo");
83 bindConstant().annotatedWith(Color.class).to("foo");
101 bindConstant().annotatedWith(createBlue(6)).to("six");
H A DTypeConversionTest.java79 bindConstant().annotatedWith(NumericValue.class).to("5");
95 bindConstant().annotatedWith(NumericValue.class).to("5");
96 bindConstant().annotatedWith(BooleanValue.class).to("true");
97 bindConstant().annotatedWith(EnumValue.class).to("TEE");
98 bindConstant().annotatedWith(ClassName.class).to(Foo.class.getName());
128 bindConstant().annotatedWith(NumericValue.class).to("5");
129 bindConstant().annotatedWith(BooleanValue.class).to("true");
130 bindConstant().annotatedWith(EnumValue.class).to("TEE");
131 bindConstant().annotatedWith(ClassName.class).to(Foo.class.getName());
170 bindConstant()
[all...]
H A DRequestInjectionTest.java55 bindConstant().annotatedWith(ForMethod.class).to("test");
56 bindConstant().annotatedWith(ForField.class).to(5);
71 bindConstant().annotatedWith(ForMethod.class).to("test");
72 bindConstant().annotatedWith(ForField.class).to(5);
87 bindConstant().annotatedWith(ForMethod.class).to("test");
88 bindConstant().annotatedWith(ForField.class).to(5);
H A DInjectorTest.java98 bindConstant().annotatedWith(S.class).to("test");
99 bindConstant().annotatedWith(I.class).to(5);
116 bindConstant().annotatedWith(I.class).to(5);
208 bindConstant().annotatedWith(S.class).to("test");
209 bindConstant().annotatedWith(I.class).to(5);
H A DProvisionExceptionsTest.java39 bindConstant().annotatedWith(Names.named("runtime")).to(true);
61 bindConstant().annotatedWith(Names.named("runtime")).to(false);
H A DReflectionTest.java54 bindConstant().annotatedWith(I.class).to(5);
H A DBinderTest.java152 bindConstant();
183 bindConstant().annotatedWith(Names.named("nullOne")).to(none);
208 assertEquals("ConstantBindingBuilder", bindConstant().toString());
210 bindConstant().annotatedWith(Names.named("b")).toString());
230 assertNotSerializable(bindConstant());
231 assertNotSerializable(bindConstant().annotatedWith(Names.named("b")));
H A DPerformanceComparison.java116 bindConstant().annotatedWith(I.class).to(5);
117 bindConstant().annotatedWith(S.class).to("test");
H A DBindingTest.java95 bindConstant().annotatedWith(named("name")).to("Bob");
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
H A DBackToTheFutureModule.java45 bindConstant().annotatedWith(Names.named("year")).to("1955");
/external/guice/extensions/jmx/test/com/google/inject/tools/jmx/
H A DJmxTest.java58 bindConstant().annotatedWith(Names.named("port")).to(8080);
/external/guice/core/src/com/google/inject/
H A DAbstractModule.java46 * bindConstant().annotatedWith(Names.named("port")).to(8080);
112 * @see Binder#bindConstant()
114 protected AnnotatedConstantBindingBuilder bindConstant() { method in class:AbstractModule
115 return binder().bindConstant();
H A DPrivateModule.java174 * @see Binder#bindConstant()
176 protected final AnnotatedConstantBindingBuilder bindConstant() { method in class:PrivateModule
177 return binder().bindConstant();
H A DBinder.java145 * bindConstant().annotatedWith(ServerHost.class).to(args[0]);</pre>
254 AnnotatedConstantBindingBuilder bindConstant(); method in interface:Binder
/external/guice/extensions/servlet/test/com/google/inject/servlet/
H A DScopeRequestIntegrationTest.java62 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN);
95 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN);
113 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN);
/external/guice/core/test/com/google/inject/spi/
H A DElementsTest.java160 bindConstant().annotatedWith(SampleAnnotation.class).to("A");
161 bindConstant().annotatedWith(Names.named("Bee")).to("B");
189 bindConstant().annotatedWith(Names.named("String")).to("A");
190 bindConstant().annotatedWith(Names.named("int")).to(2);
191 bindConstant().annotatedWith(Names.named("long")).to(3L);
192 bindConstant().annotatedWith(Names.named("boolean")).to(false);
193 bindConstant().annotatedWith(Names.named("double")).to(5.0d);
194 bindConstant().annotatedWith(Names.named("float")).to(6.0f);
195 bindConstant().annotatedWith(Names.named("short")).to((short) 7);
196 bindConstant()
[all...]
H A DSpiBindingsTest.java59 bindConstant().annotatedWith(Names.named("one")).to(1);
223 bindConstant().annotatedWith(Names.named("one")).to(1);
247 bindConstant().annotatedWith(Names.named("one")).to("1");
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
H A DJpaPersistModule.java63 bindConstant().annotatedWith(Jpa.class).to(jpaUnit);
/external/guice/core/test/com/google/inject/name/
H A DNamedEquivalanceTest.java145 bindConstant().annotatedWith(annotation).to("bar");
/external/guice/extensions/grapher/test/com/google/inject/grapher/
H A DTransitiveDependencyVisitorTest.java182 bindConstant().annotatedWith(Names.named("number")).to("2008");
/external/guice/core/test/com/google/inject/util/
H A DOverrideModuleTest.java94 bindConstant().annotatedWith(named("Test")).to("A");
100 bindConstant().annotatedWith(named("Test")).to("B");
/external/guice/core/src/com/google/inject/spi/
H A DElements.java388 public AnnotatedConstantBindingBuilder bindConstant() { method in class:Elements.RecordingBinder
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
H A DMapBinderTest.java677 bindConstant().annotatedWith(Names.named("b")).to("B");
714 bindConstant().annotatedWith(Names.named("b")).to("B");
H A DMultibinderTest.java512 bindConstant().annotatedWith(Names.named("b")).to("B");
536 bindConstant().annotatedWith(Names.named("b")).to("B");
H A DOptionalBinderTest.java849 bindConstant().annotatedWith(Names.named("b")).to("B");
866 bindConstant().annotatedWith(Names.named("b")).to("B");

Completed in 568 milliseconds

12