Back to project page DroidBilling.
The source code is released under:
MIT License
If you think the Android project DroidBilling listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.techery.droid.billings; //www . j a v a2s . c om import android.content.Context; import com.techery.droid.billings.annotations.Billing; import javax.inject.Inject; import dagger.ObjectGraph; import de.greenrobot.event.EventBus; public abstract class AbstractController { @Inject @Billing EventBus bus; @Inject @Billing Context context; protected final ObjectGraph objectGraph; public AbstractController(ObjectGraph objectGraph) { this.objectGraph = objectGraph; this.objectGraph.inject(this); } protected EventBus getBus() { return bus; } protected Context getContext() { return context; } protected ObjectGraph getObjectGraph() { return objectGraph; } }