On
fun DIAware.On(context: DIContext<*> = this.diContext, trigger: DITrigger? = this.diTrigger): DI
Content copied to clipboard
Allows to create a new DI object with a context and/or a trigger set.
Return
A DI object that uses the same container as this one, but with its context and/or trigger changed.
Parameters
context
The new context of the new DI.
trigger
The new trigger of the new DI.