create

open override fun <T : Any> create(clazz: KClass<T>, environment: String?, config: CreatorConfig.Builder.() -> Unit?): T

Creates an object of type clazz. Notice that this function will always return a new instance ignoring the scope it has.

Parameters

clazz

Class or Interface that you want to create

environment

The environment in which you would like to create the object

config

Some extra configuration needed when creating the object.