HomeSort by relevance Sort by last modified time
    Searched refs:createInjector (Results 1 - 25 of 129) sorted by null

1 2 3 4 5 6

  /external/guice/core/src/com/google/inject/
Guice.java 36 * Injector injector = Guice.createInjector(
56 * calling {@link #createInjector(Stage, Module...)} with Stage.DEVELOPMENT.
61 public static Injector createInjector(Module... modules) {
62 return createInjector(Arrays.asList(modules));
67 * calling {@link #createInjector(Stage, Iterable)} with Stage.DEVELOPMENT.
72 public static Injector createInjector(Iterable<? extends Module> modules) {
73 return createInjector(Stage.DEVELOPMENT, modules);
83 public static Injector createInjector(Stage stage, Module... modules) {
84 return createInjector(stage, Arrays.asList(modules));
94 public static Injector createInjector(Stage stage
    [all...]
  /external/guice/core/test/com/google/inject/
LoggerInjectionTest.java 21 Injector injector = Guice.createInjector();
27 Injector injector = Guice.createInjector();
41 Injector injector = Guice.createInjector();
49 Injector injector = Guice.createInjector(new AbstractModule() {
62 Guice.createInjector(new AbstractModule() {
OptionalBindingTest.java 85 Guice.createInjector(everythingModule)
91 Guice.createInjector(partialModule)
97 Guice.createInjector()
104 Guice.createInjector(everythingModule).injectMembers(instance);
110 Guice.createInjector(partialModule).injectMembers(instance);
116 Guice.createInjector().injectMembers(instance);
121 Guice.createInjector(everythingModule, toInstanceModule)
127 Guice.createInjector(partialModule, toInstanceModule)
133 Guice.createInjector(toInstanceModule)
139 Guice.createInjector(everythingModule, toProviderInstanceModule
    [all...]
NullableInjectionPointTest.java 21 createInjector().getInstance(FooConstructor.class);
33 createInjector().getInstance(FooMethod.class);
45 createInjector().getInstance(FooField.class);
60 assertNull(createInjector().getInstance(Foo.class));
65 = createInjector().getInstance(NullableFooConstructor.class);
71 = createInjector().getInstance(NullableFooMethod.class);
77 = createInjector().getInstance(NullableFooField.class);
83 = createInjector().getInstance(CustomNullableFooConstructor.class);
89 = createInjector().getInstance(CustomNullableFooMethod.class);
95 = createInjector().getInstance(CustomNullableFooField.class)
    [all...]
ProvisionExceptionTest.java 42 Guice.createInjector().getInstance(A.class);
59 Guice.createInjector(new AbstractModule() {
77 Guice.createInjector().getInstance(E.class);
88 Guice.createInjector(new AbstractModule() {
108 Guice.createInjector().getInstance(F.class);
118 Guice.createInjector(new AbstractModule() {
133 Guice.createInjector(new AbstractModule() {
148 Guice.createInjector().getInstance(A.class);
167 Guice.createInjector().getInstance(G.class);
181 Injector injector = Guice.createInjector();
    [all...]
TypeLiteralInjectionTest.java 37 Guice.createInjector(new AbstractModule() {
51 Guice.createInjector(new AbstractModule() {
65 C c = Guice.createInjector().getInstance(C.class);
70 Guice.createInjector().getInstance(B.class);
79 B<Integer> b = Guice.createInjector().getInstance(new Key<B<Integer>>() {});
88 Guice.createInjector().getInstance(TypeLiteral.class);
RequestInjectionTest.java 52 Guice.createInjector(new AbstractModule() {
68 Guice.createInjector(new AbstractModule() {
84 Guice.createInjector(new AbstractModule() {
102 Guice.createInjector(new AbstractModule() {
117 Guice.createInjector(new AbstractModule() {
138 Guice.createInjector(new AbstractModule() {
154 Guice.createInjector(new AbstractModule() {
205 Injector injector = Guice.createInjector(new AbstractModule() {
RequireAtInjectOnConstructorsTest.java 31 Guice.createInjector(new AbstractModule() {
49 Injector injector = Guice.createInjector(new AbstractModule() {
68 Guice.createInjector(new AbstractModule() {
87 Guice.createInjector(new AbstractModule() {
111 Guice.createInjector(new AbstractModule() {
134 Guice.createInjector(new AbstractModule() {
161 Guice.createInjector(new AbstractModule() {
179 Injector injector = Guice.createInjector(new AbstractModule() {
ParentInjectorTest.java 42 Injector parent = Guice.createInjector(bindsA);
54 Injector parent = Guice.createInjector();
70 Injector parent = Guice.createInjector();
82 Injector parent = Guice.createInjector();
94 Injector parent = Guice.createInjector(bindsB);
100 Injector top = Guice.createInjector(bindsA);
109 Injector parent = Guice.createInjector();
119 Injector parent = Guice.createInjector(new AbstractModule() {
141 Injector parent = Guice.createInjector(new AbstractModule() {
159 Injector parent = Guice.createInjector(bindListConverterModule)
    [all...]
BindingOrderTest.java 32 Guice.createInjector(new AbstractModule() {
48 Injector injector = Guice.createInjector(new AbstractModule() {
83 Guice.createInjector(new AbstractModule() {
EagerSingletonTest.java 33 Guice.createInjector(Stage.PRODUCTION, new AbstractModule() {
54 Injector injector = Guice.createInjector(Stage.PRODUCTION);
60 Injector parent = Guice.createInjector(Stage.PRODUCTION);
MembersInjectorTest.java 54 Guice.createInjector(new AbstractModule() {
99 Injector injector = Guice.createInjector(new AbstractModule() {
127 Injector injector = Guice.createInjector();
137 Injector injector = Guice.createInjector();
152 Injector injector = Guice.createInjector();
159 InjectsMembersInjector injectsMembersInjector = Guice.createInjector(new AbstractModule() {
173 Guice.createInjector(new AbstractModule() {
185 Guice.createInjector(new AbstractModule() {
200 Guice.createInjector().getInstance(InjectsBrokenMembersInjector.class);
214 Injector injector = Guice.createInjector(new AbstractModule()
    [all...]
InjectorTest.java 51 Injector injector = Guice.createInjector(Stage.TOOL);
60 Injector injector = Guice.createInjector(new AbstractModule() {
94 return Guice.createInjector(new AbstractModule() {
114 Injector injector = Guice.createInjector(new AbstractModule() {
125 Injector injector = Guice.createInjector();
206 Guice.createInjector(new AbstractModule() {
220 Guice.createInjector(new AbstractModule() {
251 Injector injector = Guice.createInjector(new AbstractModule() {
279 Injector injector = Guice.createInjector(new AbstractModule() {
307 Guice.createInjector(new AbstractModule()
    [all...]
BindingAnnotationTest.java 34 Injector c = Guice.createInjector(new AbstractModule() {
49 Guice.createInjector(new AbstractModule() {
67 Guice.createInjector(new AbstractModule() {
79 Guice.createInjector(new AbstractModule() {
98 Guice.createInjector(new AbstractModule() {
JitBindingsTest.java 58 Injector injector = Guice.createInjector(new AbstractModule() {
74 Injector injector = Guice.createInjector(new AbstractModule() {
92 Injector injector = Guice.createInjector(new AbstractModule() {
108 Injector injector = Guice.createInjector(new AbstractModule() {
126 Injector injector = Guice.createInjector(new AbstractModule() {
142 Injector injector = Guice.createInjector(new AbstractModule() {
161 Guice.createInjector(new AbstractModule() {
177 Injector injector = Guice.createInjector(new AbstractModule() {
193 Guice.createInjector(new AbstractModule() {
208 Guice.createInjector(new AbstractModule()
    [all...]
CircularDependencyTest.java 48 Injector injector = Guice.createInjector(new AbstractModule() {
59 Injector injector = Guice.createInjector(new AbstractModule() {
70 Injector injector = Guice.createInjector(new AbstractModule() {
91 Injector injector = Guice.createInjector(new AbstractModule() {
102 Injector injector = Guice.createInjector();
194 Guice.createInjector().getInstance(C.class);
205 Guice.createInjector(new AbstractModule() {
220 Guice.createInjector(new AbstractModule() {
236 Guice.createInjector().getInstance(C2.class);
277 Guice.createInjector(new AbstractModule()
    [all...]
ImplicitBindingTest.java 34 Injector injector = Guice.createInjector();
52 Injector injector = Guice.createInjector();
71 Injector injector = Guice.createInjector();
77 Injector injector = Guice.createInjector(new AbstractModule() {
93 Guice.createInjector().getInstance(Key.get(I.class, Names.named("i")));
122 Injector injector = Guice.createInjector(new AbstractModule() {
246 Injector parentSetupRootInjector = Guice.createInjector(testModule);
254 Injector childSetupRootInjector = Guice.createInjector();
309 Injector injector = Guice.createInjector();
348 NonEmptyEnum cardSuit = Guice.createInjector().getInstance(NonEmptyEnum.class)
    [all...]
ReflectionTest.java 38 Injector injector = Guice.createInjector(new AbstractModule() {
52 Injector injector = Guice.createInjector(new AbstractModule() {
68 Injector injector = Guice.createInjector(new AbstractModule() {
BoundInstanceInjectionTest.java 39 Injector injector = Guice.createInjector(new AbstractModule() {
58 Injector injector = Guice.createInjector(new AbstractModule() {
77 Guice.createInjector(new AbstractModule() {
92 Guice.createInjector(new AbstractModule() {
  /external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
InjectorGrapherDemo.java 38 Injector demoInjector = Guice.createInjector(Stage.DEVELOPMENT,
42 Injector injector = Guice.createInjector(new GraphvizModule());
  /external/guice/core/test/com/google/inject/spi/
BindingTargetVisitorTest.java 32 Injector injector = Guice.createInjector();
  /external/guice/jdk8-tests/test/com/google/inject/jdk8/
Java8LanguageFeatureBindingTest.java 49 Injector injector = Guice.createInjector(new AbstractModule() {
62 Injector injector = Guice.createInjector(new AbstractModule() {
77 Injector injector = Guice.createInjector(new AbstractModule() {
101 Guice.createInjector(new AbstractModule() {
113 Injector injector = Guice.createInjector(new AbstractModule() {
141 Injector injector = Guice.createInjector(new AbstractModule() {
154 Injector injector = Guice.createInjector(new AbstractModule() {
DefaultMethodInterceptionTest.java 79 Injector injector = Guice.createInjector(new AbstractModule() {
95 Injector injector = Guice.createInjector(new AbstractModule() {
123 Injector injector = Guice.createInjector(new AbstractModule() {
158 Injector injector = Guice.createInjector(new AbstractModule() {
191 Injector injector = Guice.createInjector(new AbstractModule() {
208 Injector injector = Guice.createInjector(new AbstractModule() {
  /external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/
BoundFieldModuleTest.java 49 Guice.createInjector(module);
61 Injector injector = Guice.createInjector(module);
73 Injector injector = Guice.createInjector(module);
96 Injector injector = Guice.createInjector(module);
110 Injector injector = Guice.createInjector(module);
123 Injector injector = Guice.createInjector(module);
135 Injector injector = Guice.createInjector(module);
159 Guice.createInjector(module);
184 Injector injector = Guice.createInjector(module);
207 Injector injector = Guice.createInjector(module)
    [all...]
  /external/guice/extensions/servlet/test/com/google/inject/servlet/
InvalidScopeBindingTest.java 31 Guice.createInjector(new ServletModule() {
51 Guice.createInjector(new ServletModule() {
71 Guice.createInjector(new ServletModule() {

Completed in 1234 milliseconds

1 2 3 4 5 6