open class SimpleAndroidInjectionAdapter : InjectionAdapter
Extensible injection adapter that operates on an io.jentz.winter.inject.ApplicationScope component with an ActivityScope subcomponent.
The adapters opens the application component for Application and the "activity" component for Activity. The Activity must implement LifecycleOwner so that the opened activity graph can be automatically closed.
The following is provided via the activity graph:
SimpleAndroidInjectionAdapter(app: WinterApplication)
Extensible injection adapter that operates on an io.jentz.winter.inject.ApplicationScope component with an ActivityScope subcomponent. |
val app: WinterApplication |
open fun close(instance: Any): Unit |
|
open fun closeActivityGraph(activity: Activity): Unit |
|
open fun closeFragmentGraph(fragment: Fragment): Unit |
|
open fun get(instance: Any): Graph? |
|
open fun getActivityGraph(activity: Activity): Graph? |
|
open fun getActivityParentGraph(activity: Activity): Graph? |
|
open fun getApplicationGraph(application: Application): Graph? |
|
open fun getBroadcastReceiverGraph(receiver: BroadcastReceiver): Graph? |
|
open fun getContentProviderGraph(contentProvider: ContentProvider): Graph? |
|
open fun getContextWrapperGraph(contextWrapper: ContextWrapper): Graph? |
|
open fun getFragmentGraph(fragment: Fragment): Graph? |
|
open fun getServiceGraph(service: Service): Graph? |
|
open fun getViewGraph(view: View): Graph? |
|
open fun setupActivityGraph(activity: Activity, builder: Builder): Unit |
open class AndroidPresentationScopeInjectionAdapter : SimpleAndroidInjectionAdapter
Extended version of SimpleAndroidInjectionAdapter that retains a PresentationScope subgraph during Activity re-creation (configuration changes). |