KontainerFactory

interface KontainerFactory<T : Kontainer>

Factory for creating Kontainers of type T.

Author

Scott Rossillo

Functions

Link copied to clipboard
abstract fun createKontainer(): T

Returns an instance of Kontainer created with the default kontainerSpec.

abstract fun createKontainer(kontainerSpec: KontainerSpec): T

Returns an instance of Kontainer with the given customized kontainerSpec.

Link copied to clipboard
abstract fun supports(kontainerKClass: KClass<out Kontainer>): Boolean

Returns true if this KontainerFactory is capable of instantiating a Kontainer of the given kontainerKClass.

Properties

Link copied to clipboard
abstract val kontainerSpec: KontainerSpec