ForBaseTypes

data class ForBaseTypes(baseTypes: Set<KClass<*>>) : TypeLookup

Helper class for finding baseTypes of a given super type

Result to calls of getAllCandidatesFor and cached internally for future reuse.

Constructors

ForBaseTypes
Link copied to clipboard
fun ForBaseTypes(baseTypes: Set<KClass<*>>)

Functions

getAllCandidatesFor
Link copied to clipboard
open override fun getAllCandidatesFor(type: KClass<*>): Set<KClass<*>>
Gets all baseTypes that are base types of the given super type
getDistinctFor
Link copied to clipboard
fun getDistinctFor(type: KClass<*>): KClass<*>
Gets a distinct candidate for the given typeIf there is no super type or more than one found, a ServiceNotFound is thrown.

Properties

baseTypes
Link copied to clipboard
val baseTypes: Set<KClass<*>>