newInstanceOf
Constructs an instance of Type using reflection. All required constructor parameters will be extracted from Context and must be present before calling this method.
Return
a new instance of Type with injected dependencies.
Parameters
Type
reified type of the constructed instance. This class must have a single constructor.
Throws
if any of the dependencies are missing.
ReflectionException
when unable to construct an instance.