Re: Even harder than coding... designing code. UML diagrams
Looks much better.
Here is a sample of how to use callbacks to eliminate the dependency. During startup/initialization OneControlerClass should create an object of CallbackImpl (which is a contained/nested class in OneControlerClass) and call OneViewClass.registerCallback(), which stores it.
When an event occures OneViewClass calls the callback() method of the stored object.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.