The GWT ClientFactory appears to be a new design pattern for GWT applications and although it is not officially part of the GWT API, it is encouraged by GWT and is found in countless GWT / MVP examples.
I like the concept of ClientFactory . But here is my concern: for really large applications that have many screens, display areas and complex architectures, one ClientFactory will become this massive monolith of a data structure with potential hundreds of getter methods on it.
So, I ask: is this normal? Why such a monolithic design is encouraged and acceptable for GWT, but not in other (general) applications. More importantly, is there a way to decompose the broadcast ClientFactory into a hierarchy of factory objects to help with maintainability of the code, dependencies / links, etc.?
If so, do you decompose ClientFactory into smaller factories, each of which is responsible for injecting another part of the application with the necessary presentations, presenters, etc.?
user1768830
source share