winter / io.jentz.winter / WinterInjection / Adapter

Adapter

interface Adapter

Adapter interface to provide application specific graph creation and retrieval strategy.

Functions

createGraph

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

Create dependency graph for instance.

disposeGraph

abstract fun disposeGraph(instance: Any): Unit

Dispose the dependency graph of the given instance.

getGraph

abstract fun getGraph(instance: Any): Graph

Get dependency graph for instance.

Inheritors

ApplicationGraphOnlyAdapter

class ApplicationGraphOnlyAdapter : WinterInjection.Adapter

Simple adapter for application with only one dependency graph.