winter-android / io.jentz.winter.android / SimpleAndroidInjectionAdapter

SimpleAndroidInjectionAdapter

open class SimpleAndroidInjectionAdapter : Adapter

Simple extensible injection adapter that operates on a WinterTree and requires a root component with an "activity" named subcomponent.

The adapters createGraph method registers the application instance on the application dependency graph and the activity instance on the activity dependency graph.

The createGraph and disposeGraph methods support instances of Application and Activity. The retrieval method getGraph supports instances of Application, Activity, View, DependencyGraphContextWrapper and ContextWrapper.

Constructors

<init>

SimpleAndroidInjectionAdapter(tree: WinterTree)

Simple extensible injection adapter that operates on a WinterTree and requires a root component with an "activity" named subcomponent.

Properties

tree

val tree: WinterTree

Functions

createGraph

open fun createGraph(instance: Any, block: ComponentBuilderBlock?): Graph

disposeGraph

open fun disposeGraph(instance: Any): Unit

getGraph

open fun getGraph(instance: Any): Graph