Am 12.03.2009 9:48 Uhr, schrieb Rickard Öberg: > Scratch last post. I've been trying to split the UI into three parts, > and it's not quite working out, due to the dependencies. > > Factory->Controllers->Application > ->View<- > > Basically, one layer contains ONLY controllers. The controllers call the > application layer. This is fine. The second layer contains views only, > and have observer code that reacts to application notifications, but has > no activity on its own. This is fine. > > The third layer, the factory layer which is supposed to create the view > and controller, and bind them together, I can't quite get to work. The > problem is that the factory, which is an implementation of > ServiceImporter, as all Views (most of them extending JPanel) are > considered imported services, has to live in the View layer. But then it > does not have access to the Controllers! And if I put them in the > Factory layer, then the View assembly cannot reference them, as they are > not seen there. > > The easy solution is to just have one UI layer, and with circular > references: > UI->application > <- > > But it doesn't quite feel right... argh... how to instantiate the Views > when the factory needs to live in the same layer and yet requires access > to other layers!?? > > /Rickard > > _______________________________________________ > qi4j-dev mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/qi4j-dev
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

