This content has been marked as final. Show 3 replies
- A static class "Data" with reference to a class "Basic"A static reference? There's the problem right there. Data is only designed to be used with one instance of Basic. If you have a need for > 1 instance of Basic you have to redesign Data.
I do not want more than one instance of basic. The problem is that the reference of basic can be replaced by the server component and therefore I need a way to update the GUI elements.
I do not want more than one instance of basic.Maybe not, but you have got more than one instance of Basic. So your design has to cope. As you've described it here, it doesn't. When Data.setBasic() gets called, you have more work to do.