createInstance
Registers a resource.
Return
The companion object of the resource.
Parameters
R
The type of the resource.
Creates a new instance of a resource.
Return
The new instance.
Parameters
clazz
The class of the resource.
R
The type of the resource.
Creates a new instance of a resource.
Return
The new instance.
Parameters
type
The type of the resource.