FindDSL

DSL to find bindings.

Can be used as such (with findAllBindings):

val bindings = kodein.container.tree.findAllBindings {
+binding<Whatever>()
+tag("my-tag")
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Allows to merge to constraints.

Link copied to clipboard
fun Argument(argumentType: TypeToken<*>): SearchDSL.Spec

Creates an argument constrained spec.

Link copied to clipboard

Creates an argument constrained spec.

Link copied to clipboard
inline fun <T : Any> SearchDSL.binding(tag: Any? = null): SearchDSL.Binding

Creates a return type constrained spec.

Link copied to clipboard
fun Context(contextType: TypeToken<*>): SearchDSL.Spec

Creates a context constrained spec.

Link copied to clipboard

Creates a context constrained spec.

Link copied to clipboard
fun tag(tag: Any?): SearchDSL.Spec

Creates a tag constrained spec.

Link copied to clipboard
operator fun SearchDSL.Spec.unaryPlus()

Register a spec.

Link copied to clipboard

Allows to add a constraints spec.