HomeSort by relevance Sort by last modified time
    Searched full:membersinjector (Results 1 - 25 of 78) sorted by null

1 2 3 4

  /external/dagger2/core/src/main/java/dagger/internal/
MembersInjectors.java 18 import dagger.MembersInjector;
22 * Basic {@link MembersInjector} implementations used by the framework.
29 * Returns a {@link MembersInjector} implementation that injects no members
35 public static <T> MembersInjector<T> noOp() {
36 return (MembersInjector<T>) NoOpMembersInjector.INSTANCE;
39 private static enum NoOpMembersInjector implements MembersInjector<Object> {
50 * Returns a {@link MembersInjector} that delegates to the {@link MembersInjector} of its
58 public static <T> MembersInjector<T> delegatingTo(MembersInjector<? super T> delegate)
    [all...]
  /external/guice/core/test/com/google/inject/
MembersInjectorTest.java 49 final AtomicReference<MembersInjector<A<C>>> aMembersInjectorReference
50 = new AtomicReference<MembersInjector<A<C>>>();
51 final AtomicReference<MembersInjector<B>> bMembersInjectorReference
52 = new AtomicReference<MembersInjector<B>>();
56 MembersInjector<A<C>> aMembersInjector = getMembersInjector(new TypeLiteral<A<C>>() {});
62 "This MembersInjector cannot be used until the Injector has been created.");
65 MembersInjector<B> bMembersInjector = getMembersInjector(B.class);
71 "This MembersInjector cannot be used until the Injector has been created.");
77 assertEquals("MembersInjector<java.lang.String>",
105 MembersInjector<A<C>> aMembersInjecto
    [all...]
  /external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
Injector.java 19 import dagger.MembersInjector;
29 MembersInjector<T> membersInjector();
BasicComponent.java 20 import dagger.MembersInjector;
76 MembersInjector<InjectedThing> injectedThingMembersInjector();
79 MembersInjector<TypeWithInheritedMembersInjection>
  /external/guice/core/src/com/google/inject/spi/
MembersInjectorLookup.java 23 import com.google.inject.MembersInjector;
30 * MembersInjector&lt;PaymentService&gt; membersInjector
40 private MembersInjector<T> delegate;
67 public void initializeDelegate(MembersInjector<T> delegate) {
81 public MembersInjector<T> getDelegate() {
90 public MembersInjector<T> getMembersInjector() {
91 return new MembersInjector<T>() {
94 "This MembersInjector cannot be used until the Injector has been created.");
99 return "MembersInjector<" + type + ">"
    [all...]
TypeEncounter.java 20 import com.google.inject.MembersInjector;
80 <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral);
90 <T> MembersInjector<T> getMembersInjector(Class<T> type);
96 void register(MembersInjector<? super I> membersInjector);
  /external/guice/core/src/com/google/inject/internal/
LookupProcessor.java 19 import com.google.inject.MembersInjector;
38 MembersInjector<T> membersInjector
40 lookup.initializeDelegate(membersInjector);
ConstructorInjectorStore.java 74 MembersInjectorImpl<T> membersInjector = (MembersInjectorImpl<T>) injector.membersInjectorStore
79 ImmutableList<MethodAspect> methodAspects = membersInjector.getAddedAspects().isEmpty()
81 : ImmutableList.copyOf(concat(injectorAspects, membersInjector.getAddedAspects()));
90 return new ConstructorInjector<T>(membersInjector.getInjectionPoints(), factory.create(),
91 constructorParameterInjectors, membersInjector);
ConstructorInjector.java 37 private final MembersInjectorImpl<T> membersInjector;
42 MembersInjectorImpl<T> membersInjector) {
46 this.membersInjector = membersInjector;
114 membersInjector.injectMembers(t, errors, context, false);
115 membersInjector.notifyListeners(t, errors);
EncounterImpl.java 25 import com.google.inject.MembersInjector;
44 private List<MembersInjector<? super T>> membersInjectors; // lazy
80 ImmutableSet<MembersInjector<? super T>> getMembersInjectors() {
82 ? ImmutableSet.<MembersInjector<? super T>>of()
92 public void register(MembersInjector<? super T> membersInjector) {
99 membersInjectors.add(membersInjector);
136 public <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> typeLiteral) {
141 public <T> MembersInjector<T> getMembersInjector(Class<T> type) {
Lookups.java 20 import com.google.inject.MembersInjector;
34 <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> type);
MembersInjectorImpl.java 22 import com.google.inject.MembersInjector;
33 final class MembersInjectorImpl<T> implements MembersInjector<T> {
37 private final ImmutableSet<MembersInjector<? super T>> userMembersInjectors;
104 // if a MembersInjector from the usersMemberInjector list wants
136 // TODO: There's no way to know if a user's MembersInjector wants toolable injections.
138 for (MembersInjector<? super T> userMembersInjector : userMembersInjectors) {
149 return "MembersInjector<" + typeLiteral + ">";
DeferredLookups.java 21 import com.google.inject.MembersInjector;
58 public <T> MembersInjector<T> getMembersInjector(TypeLiteral<T> type) {
Initializer.java 49 /** Maps from instances that need injection to the MembersInjector that will inject them. */
167 MembersInjectorImpl<T> membersInjector =
169 Preconditions.checkState(membersInjector != null,
170 "No membersInjector available for instance: %s, from key: %s", instance, key);
174 membersInjector.injectAndNotify(instance,
InjectorImpl.java 32 import com.google.inject.MembersInjector;
310 /** Returns true if the key type is MembersInjector (but not a subclass of MembersInjector). */
312 return key.getTypeLiteral().getRawType().equals(MembersInjector.class)
316 private <T> BindingImpl<MembersInjector<T>> createMembersInjectorBinding(
317 Key<MembersInjector<T>> key, Errors errors) throws ErrorsException {
323 @SuppressWarnings("unchecked") // safe because T came from Key<MembersInjector<T>>
326 MembersInjector<T> membersInjector = membersInjectorStore.get(instanceType, errors);
328 InternalFactory<MembersInjector<T>> factory = new ConstantFactory<MembersInjector<T>>
    [all...]
  /prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.0/
dagger-2.0-sources.jar 
  /external/dagger2/compiler/src/it/functional-tests/src/main/java/test/tck/
EngineModule.java 18 import dagger.MembersInjector;
27 Engine provideEngine(MembersInjector<V8Engine> injector) {
  /external/dagger2/compiler/src/test/java/dagger/internal/codegen/
MembersInjectionTest.java 69 "import dagger.MembersInjector;",
94 " Child_Factory.create((MembersInjector) MembersInjectors.noOp());",
159 "import dagger.MembersInjector;",
165 " private MembersInjector<Child> childMembersInjector;",
225 "import dagger.MembersInjector;",
231 " implements MembersInjector<GenericClass<A, B>> {",
251 " public static <A, B> MembersInjector<GenericClass<A, B>> create(",
318 "import dagger.MembersInjector;",
324 " implements MembersInjector<Child<T>> {",
351 " public static <T> MembersInjector<Child<T>> create("
    [all...]
InjectConstructorFactoryGeneratorTest.java 178 "import dagger.MembersInjector;",
184 " private final MembersInjector<GenericClass<A, B>> membersInjector;",
186 " public GenericClass_Factory(MembersInjector<GenericClass<A, B>> membersInjector) {",
187 " assert membersInjector != null;",
188 " this.membersInjector = membersInjector;",
194 " membersInjector.injectMembers(instance);",
199 " MembersInjector<GenericClass<A, B>> membersInjector) {"
    [all...]
BindingFieldTest.java 20 import dagger.MembersInjector;
72 assertThat(FrameworkField.createWithTypeFromKey(MembersInjector.class,
76 ClassName.fromClass(MembersInjector.class), xClass));
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DependencyRequestMapper.java 21 import dagger.MembersInjector;
66 return MembersInjector.class;
89 return MembersInjector.class;
DependencyVariableNamer.java 52 return variableName.endsWith("MembersInjector") && !variableName.equals("MembersInjector")
FactoryGenerator.java 24 import dagger.MembersInjector;
161 MembersInjector.class, providedTypeName);
162 factoryWriter.addField(membersInjectorType, "membersInjector").addModifiers(PRIVATE, FINAL);
163 constructorWriter.get().addParameter(membersInjectorType, "membersInjector");
165 .addSnippet("assert membersInjector != null;")
166 .addSnippet("this.membersInjector = membersInjector;");
268 getMethodWriter.body().addSnippet("membersInjector.injectMembers(instance);");
  /prebuilts/tools/common/m2/repository/com/squareup/dagger/dagger/1.2.2/
dagger-1.2.2-sources.jar 
  /external/dagger2/compiler/src/it/functional-tests/src/test/java/test/membersinject/
MembersInjectTest.java 18 import dagger.MembersInjector;
91 MembersInjector<NonRequestedChild> injector = new NonRequestedChild_MembersInjector(provider);

Completed in 1272 milliseconds

1 2 3 4