winter / io.jentz.winter.adapter / ApplicationGraphOnlyAdapter

ApplicationGraphOnlyAdapter

class ApplicationGraphOnlyAdapter : WinterInjection.Adapter

Simple adapter for application with only one dependency graph.

Constructors

<init>

ApplicationGraphOnlyAdapter(tree: WinterTree)

Simple adapter for application with only one dependency graph.

Functions

createGraph

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

Create dependency graph for instance.

disposeGraph

fun disposeGraph(instance: Any): Unit

Dispose the dependency graph of the given instance.

getGraph

fun getGraph(instance: Any): Graph

Get dependency graph for instance.