TypeLookup

abstract class TypeLookup

Helpers for looking up base and super types.

Constructors

TypeLookup
Link copied to clipboard
fun TypeLookup()

Types

ForBaseTypes
Link copied to clipboard
data class ForBaseTypes(baseTypes: Set<KClass<*>>) : TypeLookup
Helper class for finding baseTypes of a given super typeResult to calls of getAllCandidatesFor and cached internally for future reuse.
ForSuperTypes
Link copied to clipboard
data class ForSuperTypes(superTypes: Set<KClass<*>>) : TypeLookup
Helper class for finding superTypes of given base typeResult to calls of getAllCandidatesFor and cached internally for future reuse.

Functions

getAllCandidatesFor
Link copied to clipboard
abstract fun getAllCandidatesFor(type: KClass<*>): Set<KClass<*>>
Get all matching types for the given 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.

Inheritors

TypeLookup
Link copied to clipboard
TypeLookup
Link copied to clipboard