com.nikedlab.android.inject.extenders.SimpleInjector Maven / Gradle / Ivy
The newest version!
package com.nikedlab.android.inject.extenders;
/**
* Created with Comodo Inc.
* User: nike
* Date: 8/6/13
* Time: 1:38 AM
*/
public abstract class SimpleInjector {
private InjectedApplication application;
protected SimpleInjector() {
InjectedApplication application = getInjectedApplication();
application.injectInto(this);
}
private InjectedApplication getInjectedApplication() {
if (application == null) {
application = (InjectedApplication) InjectedApplication.application;
}
return application;
}
}