dagger.android.DispatchingAndroidInjector Java Examples

The following examples show how to use dagger.android.DispatchingAndroidInjector. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConductorInjection.java    From conductor-dagger with Apache License 2.0 5 votes vote down vote up
public static void inject(Controller controller) {
  Preconditions.checkNotNull(controller, "controller");
  HasControllerInjector hasDispatchingControllerInjector = findHasControllerInjector(controller);
  Log.d("dagger.android", String.format("An injector for %s was found in %s", controller.getClass().getCanonicalName(),
      hasDispatchingControllerInjector.getClass().getCanonicalName()));
  DispatchingAndroidInjector<Controller> controllerInjector = hasDispatchingControllerInjector.controllerInjector();
  Preconditions.checkNotNull(controllerInjector, "%s.controllerInjector() returned null",
      hasDispatchingControllerInjector.getClass().getCanonicalName());
  controllerInjector.inject(controller);
}
 
Example #2
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #3
Source File: MyApplication.java    From codeexamples-android with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #4
Source File: MyApplication.java    From codeexamples-android with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #5
Source File: MvvmApp.java    From android-mvvm-architecture with Apache License 2.0 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return activityDispatchingAndroidInjector;
}
 
Example #6
Source File: CustomApplication.java    From conductor-dagger with Apache License 2.0 4 votes vote down vote up
@Override public DispatchingAndroidInjector<Controller> controllerInjector() {
  return dispatchingControllerInjector;
}
 
Example #7
Source File: AppController.java    From Dagger2-Sample with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #8
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #9
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #10
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #11
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #12
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #13
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #14
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #15
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #16
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #17
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #18
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #19
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #20
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #21
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #22
Source File: ProjectApplication.java    From Building-Professional-Android-Applications with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return dispatchingAndroidInjector;
}
 
Example #23
Source File: AutoCallRecorderApp.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Fragment> supportFragmentInjector() {
    return mSupportFragmentInjector;
}
 
Example #24
Source File: AutoCallRecorderApp.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Service> serviceInjector() {
    return mServiceInjector;
}
 
Example #25
Source File: AutoCallRecorderApp.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
@Override
public DispatchingAndroidInjector<Activity> activityInjector() {
    return mActivityInjector;
}
 
Example #26
Source File: AppComponent.java    From dagger-reflect with Apache License 2.0 votes vote down vote up
DispatchingAndroidInjector<Object> androidInjector(); 
Example #27
Source File: HasControllerInjector.java    From conductor-dagger with Apache License 2.0 votes vote down vote up
DispatchingAndroidInjector<Controller> controllerInjector();