interface UnboundService<R : Any>
Interface for service entries registered in a Component.
Custom implementations can be added to a Component by using ComponentBuilder.register.
abstract val key: TypeKey<R>
The TypeKey of the type this service is providing. |
|
abstract val requiresLifecycleCallbacks: Boolean
Return true if the bound service requires lifecycle calls to BoundService.onPostConstruct or BoundService.onClose otherwise false. |
abstract fun bind(graph: Graph): BoundService<R>
Binds this unbound service a given graph and returns a BoundService. |