/external/guice/core/src/com/google/inject/binder/ |
H A D | AnnotatedConstantBindingBuilder.java | 31 ConstantBindingBuilder annotatedWith( method in interface:AnnotatedConstantBindingBuilder 37 ConstantBindingBuilder annotatedWith(Annotation annotation); method in interface:AnnotatedConstantBindingBuilder
|
H A D | AnnotatedElementBuilder.java | 32 void annotatedWith(Class<? extends Annotation> annotationType); method in interface:AnnotatedElementBuilder 37 void annotatedWith(Annotation annotation); method in interface:AnnotatedElementBuilder
|
H A D | AnnotatedBindingBuilder.java | 31 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 D | BackToTheFutureModule.java | 36 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 D | PersistModule.java | 19 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 D | GraphvizModule.java | 31 .annotatedWith(Graphviz.class) 34 .annotatedWith(Graphviz.class)
|
/external/guice/core/test/com/google/inject/ |
H A D | PrivateModuleTest.java | 46 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 D | BindingAnnotationTest.java | 37 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 D | TypeConversionTest.java | 79 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 D | RequestInjectionTest.java | 55 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 D | ProviderInjectionTest.java | 123 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 D | BinderTest.java | 98 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 D | DuplicateBindingsTest.java | 418 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 D | InjectorTest.java | 64 .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 D | LoggerInjectionTest.java | 52 .annotatedWith(Names.named("anonymous"))
|
/external/guice/core/test/com/google/inject/matcher/ |
H A D | MatcherTest.java | 21 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 D | ExposureBuilder.java | 46 public void annotatedWith(Class<? extends Annotation> annotationType) { method in class:ExposureBuilder 52 public void annotatedWith(Annotation annotation) { method in class:ExposureBuilder
|
H A D | ConstantBindingBuilderImpl.java | 44 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 D | JmxTest.java | 56 .annotatedWith(Transactional.class) 58 bindConstant().annotatedWith(Names.named("port")).to(8080);
|
/external/guice/jdk8-tests/test/com/google/inject/jdk8/ |
H A D | DefaultMethodInterceptionTest.java | 82 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 D | StaticDataProviderSampleTest.java | 37 bind(String.class).annotatedWith(Names.named("test")).toInstance("Cedric");
|
/external/guice/core/test/com/google/inject/spi/ |
H A D | ElementsTest.java | 160 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 D | GuiceTck.java | 47 bind(Seat.class).annotatedWith(Drivers.class).to(DriversSeat.class);
|
H A D | Jsr330Test.java | 82 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 D | ExtensionSpiTest.java | 173 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);
|