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

FindDSL
Link copied to clipboard
common
fun FindDSL()

Functions

and
Link copied to clipboard
common
infix fun SearchSpecs.and(spec: SearchDSL.Spec): SearchSpecs
Allows to merge to constraints.
Argument
Link copied to clipboard
common
fun Argument(argumentType: TypeToken<*>): SearchDSL.Spec
Creates an argument constrained spec.
Context
Link copied to clipboard
common
fun Context(contextType: TypeToken<*>): SearchDSL.Spec
Creates a context constrained spec.
tag
Link copied to clipboard
common
fun tag(tag: Any?): SearchDSL.Spec
Creates a tag constrained spec.
unaryPlus
Link copied to clipboard
common
operator fun SearchDSL.Spec.unaryPlus()
Register a spec.
with
Link copied to clipboard
common
infix fun SearchSpecs.with(spec: SearchDSL.Spec): SearchSpecs
Allows to add a constraints spec.