winter / io.jentz.winter / WinterInjection / createGraph

createGraph

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

Create and return dependency graph for instance.

Parameters

instance - The instance for which a graph should be created.

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.