@Test public void testInjection(){ A a = new A(); injector.inject(a); assertEquals("FOO", a.getB().getTest()); }
public final void inject(@NonNull Object instance) { inject(instance, instance.getClass()); }
Injector { public final void inject(@NonNull Object instance) { inject(instance, instance.getClass()); } }
Injector { public final void inject(@NonNull Object instance) { inject(instance, instance.getClass()); } Injector(@Nullable Injector parentInjector); }
Injector { public final void inject(@NonNull Object instance) { inject(instance, instance.getClass()); } Injector(@Nullable Injector parentInjector); final void inject(@NonNull Object instance); final void inject(@NonNull Object instance, @NonNull Class<?> clazz); @Nullable T resolveValue(@NonNull Class<T> type, @Nullable Object instance); }
Injector { public final void inject(@NonNull Object instance) { inject(instance, instance.getClass()); } Injector(@Nullable Injector parentInjector); final void inject(@NonNull Object instance); final void inject(@NonNull Object instance, @NonNull Class<?> clazz); @Nullable T resolveValue(@NonNull Class<T> type, @Nullable Object instance);  }