Yes :slightly_smiling_face: But let's say you use ...
# tornadofx
e
Yes 🙂 But let's say you use
CustomerController
to interact with a db, you might not want a separate instance of that for each editor. So in your
CustomerEditor
you can inject the
CustomerController
so that you get a shared/global instance instead:
val controller : CustomerController by inject(DefaultScope)