instance

open override fun instance(block: ComponentBuilderBlock? = null): R(source)

This is called every time an instance is requested from the Graph. Calls to this might not be synchronized.

If this service has to create a new instance to satisfy this request it must do the initialization in newInstance by calling Graph.evaluate.

Return

An instance of type R.

Parameters

block

An optional builder block to derive the graph to pass runtime values to the factory. This has to be passed to Graph.evaluate and if present will result in a extended graph passed to newInstance.