Hey all, I\'m currently working on a Java Swing application and I was looking for some guidence. The application is fairly small, but I\'m noticing that as the code base is grow
I don't agree with the people who suggest to use Event bus, because
EventBus.subscribe(SymbolListChangeEvent.class, this);
your whole code will depend on a single event bus instance which makes it very hard to test,Instead I suggest to use interfaces to encapsulate external dependencies of a module. If you like, you can use them with the listener pattern, but generally are free to refactor everything if you like.