Is it possible to bind a class member in kodein?

There is 2 classes:

  • A - base class
  • B - class of member of A

with implementation something like this:

class A {
   val b : B = B() 

class B


Is it possible to create a binding for b to hide redundant info about b source in common classes?

Kodein declaration:

override val kodein by Kodein.lazy {

    bind<A>() with singleton { A() }
    bind<B>() with "a.b some impl???"



class Usecase(kodein : Kodein){

    val b : B = kodein.instance()