I want to support the same semantics as View vs Fr...
# tornadofx
e
I want to support the same semantics as View vs Fragment does for Controllers also. The cleanest thing to do would be to introduce a
Prototype
interface and let Fragment and the controller counterpart implement those, and then rename
Injectable
to be
Singleton
or preferably something that can convey that it is a singleton within a scope.
Scoped
is almost good enough, but one could argue that Prototype is also scoped. It support scopes and `inject()`s inside Fragments does indeed honor the surrounding scope.