get

open fun <T> get(type: Class<T>): T

Return an instance from the context if the type has been registered. The instance will be created if it hasn't been accessed previously.

Return

the instance managed by the context

Parameters

<T>

the instance type

type

the instance type

Throws

if the type has not been registered