newInstance

abstract fun newInstance(graph: Graph): R(source)

This is called when this instance is passed to Graph.evaluate to create a new instance.

If you want to memorize the value this is the place to do it.

Return

The new instance of type R.

Parameters

graph

The graph that must be used to call this services factory. This is either the Graph this BoundService was bound to or an extended version if a builder block was passed to instance.