winter / io.jentz.winter / UnboundService

UnboundService

interface UnboundService<A, 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<A, 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.postConstruct or BoundService.dispose otherwise false.

Functions

bind

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

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