fun createGraph(instance: Any, block: ComponentBuilderBlock? = null): Graph
Create and return dependency graph for instance.
instance
- The instance for which a graph should be created.
block
- An optional builder block to pass to the component createGraph method.
io.jentz.winter.WinterException
- if given instance type is not supported.
Return
The newly created graph.