FindDSL

class FindDSL : SearchDSL

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
fun FindDSL()

Functions

Link copied to clipboard
infix fun SearchSpecs.and(spec: SearchDSL.Spec): SearchSpecs

Allows to merge to constraints.

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

Creates an argument constrained spec.

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

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
infix fun SearchSpecs.with(spec: SearchDSL.Spec): SearchSpecs

Allows to add a constraints spec.