winter / io.jentz.winter.adapter / ApplicationGraphOnlyAdapter / createGraph

createGraph

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

Overrides Adapter.createGraph

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