se.ansman.dagger.auto.OrderedInitializable.kt Maven / Gradle / Ivy
package se.ansman.dagger.auto
internal class OrderedInitializable(
val priority: Int,
val initializable: Initializable,
) : Initializable by initializable
internal inline fun OrderedInitializable(priority: Int, crossinline initialize: () -> Unit): OrderedInitializable =
OrderedInitializable(
priority = priority,
initializable = object : Initializable {
override fun initialize() {
initialize()
}
}
)