typeEnforcedRef

Create a reference with type enforcement.

The resulting reference will check for returned object to be compliant with specified T type, otherwise a not found exception is thrown.

typeEnforcedRef
(
T
)

Parameters

reference RuntimeReference

reference to be enforced with expected type

T

expected type returned from container

Return Value

Type: auto

TypeEnforcedRuntimeReference!T enforced reference with type.

Meta