winter / io.jentz.winter / UnboundService

UnboundService

interface UnboundService<R : Any>

Interface for service entries registered in a Component.

Custom implementations can be added to a Component by using ComponentBuilder.register.

Properties

key

abstract val key: TypeKey<R>

The TypeKey of the type this service is providing.

requiresLifecycleCallbacks

abstract val requiresLifecycleCallbacks: Boolean

Return true if the bound service requires lifecycle calls to BoundService.onPostConstruct or BoundService.onClose otherwise false.

Functions

bind

abstract fun bind(graph: Graph): BoundService<R>

Binds this unbound service a given graph and returns a BoundService.