kontainer
/
de.peekandpoke.ultra.kontainer
/
ServiceProvider
/
ForInstance
For
Instance
data class
ForInstance
:
ServiceProvider
Content copied to clipboard
Provides an already existing object as a service
Functions
Properties
Functions
provide
Link copied to clipboard
open override fun
provide
(context:
InjectionContext
):
Any
Content copied to clipboard
Simply returns the
instance
validate
Link copied to clipboard
open override fun
validate
(kontainer:
Kontainer
):
List
<
String
>
Content copied to clipboard
Always valid
Properties
instances
Link copied to clipboard
open override val
instances
:
List
<
ServiceProvider.CreatedInstance
>
Content copied to clipboard
The list of created instance always holds the
instance
type
Link copied to clipboard
open override val
type
:
ServiceProvider.Type
Content copied to clipboard
The type of the service that is created