winter / io.jentz.winter / WinterInjection / Adapter / createGraph

createGraph

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

Create dependency graph for instance.

The adapter implementation is responsible for storing the created graph.

Parameters

instance - The instance to create a dependency graph for.

block - An optional builder block to pass to the component createGraph method.

Exceptions

io.jentz.winter.WinterException - if given instance type is not supported.

Return
The newly created graph