Hey Guys, Currently, I'm looking to make a Factory-Pattern widget loader in my application but am having some trouble getting my head around it at a module level. I was hoping someone could help me sort it out.
So, my project has a Contact Manager. Each of these contacts are assigned "roles," via categories, an interface, interactions, whatever. Depending on the role the contact is playing, the contact view is rendered differently. I would like to have the various contact- rendering classes in separate projects to make debugging, code management and development easier. I created a simple ContactRenderer interface that has one method "renderView( Widget theView )." I have the modules broken up like: application (Where the entry point lives) common (always included) contacts (always included) then, modules for all the other functionality, that can sometimes include rendering views, as well as a ton of other stuff. The problem I'm having is that I can't created the ContactRenders using a Class.forName structure, due to the fact it isn't included in GWT. Is there another way around this to be able to include/exclude GWT modules and classes without breaking the project? I'm open to just about any sort of implementation with this. As it is now, I have to include EVERY module in order to get the project to work, while it would greatly simplify the thing if it just gracefully handled not having the class there through catching of a ClassNotFoundException or something like that. I've seen the Generators mentioned in other posts but I don't know is that's abstracted enough to help me get around my problem. Thanks so much for reading this tomb of a post and I really appreciate any suggestion people have. Thanks! Evan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
