winter / io.jentz.winter / WinterTree / create

create

fun create(vararg path: Any, block: ComponentBuilderBlock? = null): Graph

Create and return an object graph by (sub-)component path without registering it.

Parameters

path - The path of the (sub-)graph to initialize.

block - An optional ComponentBuilderBlock that's passed to the (sub-)component createGraph method.

Exceptions

WinterException - When application component is not set or path can not be resolved.

Return
The created Graph.