src/main/java/com/fizzbuzz/android/dagger/InjectingService.java
@Override
    public void onCreate() {
        super.onCreate();

        // extend the application-scope object graph with the modules for this service
        mObjectGraph = ((Injector) getApplication()).getObjectGraph().plus(getModules().toArray());

        // then inject ourselves
        mObjectGraph.inject(this);
    }
@Override
    public void onCreate() {
        super.onCreate();

        // extend the application-scope object graph with the modules for this service
        mObjectGraph = ((Injector) getApplication()).getObjectGraph().plus(getModules().toArray());

        // then inject ourselves
        mObjectGraph.inject(this);
    }
@ Override public void onCreate ( ) { super . onCreate ( ) ; // extend the application-scope object graph with the modules for this service mObjectGraph = ( ( Injector ) getApplication ( ) ) . getObjectGraph ( ) . plus ( getModules ( ) . toArray ( ) ) ; // then inject ourselves mObjectGraph . inject ( this ) ; }
Creates an object graph for this Service by extending the application-scope object graph with the modules
returned by {@link #getModules()}.
<p/>
Injects this Service using the created graph.
Creates an object graph for this Service by extending the application - scope object graph with the modules returned by {