Searched refs:annotatedWith (Results 1 - 25 of 66) sorted by relevance

123

/external/guice/core/src/com/google/inject/binder/
H A DAnnotatedConstantBindingBuilder.java31 ConstantBindingBuilder annotatedWith( method in interface:AnnotatedConstantBindingBuilder
37 ConstantBindingBuilder annotatedWith(Annotation annotation); method in interface:AnnotatedConstantBindingBuilder
H A DAnnotatedElementBuilder.java32 void annotatedWith(Class<? extends Annotation> annotationType); method in interface:AnnotatedElementBuilder
37 void annotatedWith(Annotation annotation); method in interface:AnnotatedElementBuilder
H A DAnnotatedBindingBuilder.java31 LinkedBindingBuilder<T> annotatedWith( method in interface:AnnotatedBindingBuilder
37 LinkedBindingBuilder<T> annotatedWith(Annotation annotation); method in interface:AnnotatedBindingBuilder
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
H A DBackToTheFutureModule.java36 bind(EnergySource.class).annotatedWith(Nuclear.class).to(Plutonium.class);
37 bind(EnergySource.class).annotatedWith(Renewable.class).to(Lightning.class);
40 bind(PinballParts.class).annotatedWith(Used.class).toInstance(new PinballParts());
42 bind(Person.class).annotatedWith(Driver.class).to(MartyMcFly.class).in(Singleton.class);
43 bind(Person.class).annotatedWith(Inventor.class).to(DocBrown.class).in(Singleton.class);
45 bindConstant().annotatedWith(Names.named("year")).to("1955");
/external/guice/extensions/persist/src/com/google/inject/persist/
H A DPersistModule.java19 import static com.google.inject.matcher.Matchers.annotatedWith;
44 bindInterceptor(annotatedWith(Transactional.class), any(), getTransactionInterceptor());
46 bindInterceptor(any(), annotatedWith(Transactional.class), getTransactionInterceptor());
/external/guice/extensions/grapher/src/com/google/inject/grapher/graphviz/
H A DGraphvizModule.java31 .annotatedWith(Graphviz.class)
34 .annotatedWith(Graphviz.class)
/external/guice/core/test/com/google/inject/
H A DPrivateModuleTest.java46 bind(String.class).annotatedWith(named("a")).toInstance("public");
50 bind(String.class).annotatedWith(named("b")).toInstance("i");
52 bind(AB.class).annotatedWith(named("one")).to(AB.class);
53 expose(AB.class).annotatedWith(named("one"));
59 bind(String.class).annotatedWith(named("b")).toInstance("ii");
61 bind(AB.class).annotatedWith(named("two")).to(AB.class);
62 expose(AB.class).annotatedWith(named("two"));
81 bindA.bind(String.class).annotatedWith(named("a")).toInstance("i");
82 bindA.expose(String.class).annotatedWith(named("a"));
83 bindA.bind(String.class).annotatedWith(name
[all...]
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().annotatedWith(NumericValu
[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 DProviderInjectionTest.java123 bind(Count.class).annotatedWith(named("a")).toInstance(new Count(0) {
130 bind(Count.class).annotatedWith(named("b")).toProvider(new Provider<Count>() {
141 bind(Count.class).annotatedWith(named("c")).toInstance(new Count(0) {
151 bind(Count.class).annotatedWith(named("d")).toInstance(new Count(8));
152 bind(Count.class).annotatedWith(named("e")).toInstance(new Count(16));
H A DBinderTest.java98 bind(Date.class).annotatedWith(Names.named("date"));
183 bindConstant().annotatedWith(Names.named("nullOne")).to(none);
184 bind(String.class).annotatedWith(Names.named("nullTwo")).toInstance(none);
207 bind(Integer.class).annotatedWith(Names.named("a")).toString());
210 bindConstant().annotatedWith(Names.named("b")).toString());
229 assertNotSerializable(bind(Integer.class).annotatedWith(Names.named("a")));
231 assertNotSerializable(bindConstant().annotatedWith(Names.named("b")));
487 bind(AbstractModule.class).annotatedWith(red)
489 bind(Binder.class).annotatedWith(red).toProvider(Providers.<Binder>of(null));
490 bind(Binding.class).annotatedWith(re
[all...]
H A DDuplicateBindingsTest.java418 bind(Foo.class).annotatedWith(named("instance")).toInstance(foo);
421 bind(Foo.class).annotatedWith(named("pInstance")).toProvider(pFoo);
424 bind(Foo.class).annotatedWith(named("pKey")).toProvider(pclFoo);
427 bind(Foo.class).annotatedWith(named("linkedKey")).to(clFoo);
433 bind(Foo.class).annotatedWith(named("constructor")).toConstructor(cFoo);
454 bind(Foo.class).annotatedWith(named("pInstance")).toProvider(pFoo).in(scope);
457 bind(Foo.class).annotatedWith(named("pKey")).toProvider(pclFoo).in(scope);
460 bind(Foo.class).annotatedWith(named("linkedKey")).to(clFoo).in(scope);
466 bind(Foo.class).annotatedWith(named("constructor")).toConstructor(cFoo).in(scope);
483 bind(Foo.class).annotatedWith(name
[all...]
H A DInjectorTest.java64 .annotatedWith(Other.class)
98 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 DLoggerInjectionTest.java52 .annotatedWith(Names.named("anonymous"))
/external/guice/core/test/com/google/inject/matcher/
H A DMatcherTest.java21 import static com.google.inject.matcher.Matchers.annotatedWith;
79 assertTrue(annotatedWith(Foo.class).matches(Bar.class));
80 assertFalse(annotatedWith(Foo.class).matches(
82 assertEquals("annotatedWith(Foo.class)", annotatedWith(Foo.class).toString());
83 assertEqualsBothWays(annotatedWith(Foo.class), annotatedWith(Foo.class));
84 assertFalse(annotatedWith(Foo.class).equals(annotatedWith(Named.class)));
87 annotatedWith(Ba
[all...]
/external/guice/core/src/com/google/inject/internal/
H A DExposureBuilder.java46 public void annotatedWith(Class<? extends Annotation> annotationType) { method in class:ExposureBuilder
52 public void annotatedWith(Annotation annotation) { method in class:ExposureBuilder
H A DConstantBindingBuilderImpl.java44 public ConstantBindingBuilder annotatedWith(Class<? extends Annotation> annotationType) { method in class:ConstantBindingBuilderImpl
49 public ConstantBindingBuilder annotatedWith(Annotation annotation) { method in class:ConstantBindingBuilderImpl
/external/guice/extensions/jmx/test/com/google/inject/tools/jmx/
H A DJmxTest.java56 .annotatedWith(Transactional.class)
58 bindConstant().annotatedWith(Names.named("port")).to(8080);
/external/guice/jdk8-tests/test/com/google/inject/jdk8/
H A DDefaultMethodInterceptionTest.java82 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class),
98 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class),
126 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class),
161 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class),
/external/testng/src/test/java/test/dataprovider/
H A DStaticDataProviderSampleTest.java37 bind(String.class).annotatedWith(Names.named("test")).toInstance("Cedric");
/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().annotatedWith(Name
[all...]
/external/guice/core/test/com/googlecode/guice/
H A DGuiceTck.java47 bind(Seat.class).annotatedWith(Drivers.class).to(DriversSeat.class);
H A DJsr330Test.java82 bind(B.class).annotatedWith(Names.named("jodie")).toInstance(b);
83 bind(C.class).annotatedWith(Red.class).toInstance(c);
84 bind(D.class).annotatedWith(RED).toInstance(d);
85 bind(E.class).annotatedWith(Names.named("jesse")).toInstance(e);
100 bind(B.class).annotatedWith(Names.named("jodie")).toInstance(b);
102 bind(D.class).annotatedWith(RED).toInstance(d);
245 bind(B.class).annotatedWith(Names.named("1")).toProvider(BProvider.class);
246 bind(B.class).annotatedWith(Names.named("2")).toProvider(Key.get(BProvider.class));
247 bind(B.class).annotatedWith(Names.named("3")).toProvider(TypeLiteral.get(BProvider.class));
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
H A DExtensionSpiTest.java173 bind(String.class).annotatedWith(named("catName1")).toInstance("kitty1");
174 bind(String.class).annotatedWith(named("catName2")).toInstance("kitty2");
175 bind(String.class).annotatedWith(named("petName")).toInstance("pussy");
176 bind(Integer.class).annotatedWith(named("age")).toInstance(12);

Completed in 428 milliseconds

123