[jboss-dev-forums] [JBoss AS7 Development] - ManagentConsolePatterns

Heiko Braun do-not-reply at jboss.com
Thu Feb 10 09:56:37 EST 2011


Heiko Braun [http://community.jboss.org/people/heiko.braun%40jboss.com] modified the document:

"ManagentConsolePatterns"

To view the document, visit: http://community.jboss.org/docs/DOC-16462

--------------------------------------------------------------
This article outlines the core patterns that being used with the JBoss AS 7 Web Management Console.

h3. Model View Presenter

A derivation of the good old MVC, that considered being best practice in the GWT community.
The main motivation for this pattern is simplify testing of GWT applications by keeping the actual views
as dumb as possible. Some introductions can be found here: 
-  http://martinfowler.com/eaaDev/ModelViewPresenter.html Model View Presenter Pattern (Martin Fowler)
-  http://code.google.com/intl/nl/events/io/sessions/GoogleWebToolkitBestPractices.html Best Practices For Architecting Your GWT App (05/27/2009) (2009-05-27)
-  http://googletesting.blogspot.com/2009/02/with-all-sport-drug-scandals-of-late.html TotT: Be an MVP of GUI Testing (2009-02-05)
-  http://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gwttest.html TotT: Testing GWT without GwtTestCase (2009-08-08)
After some considerations, we decided to stick with the  http://code.google.com/p/gwt-platform/wiki/GettingStarted GWT-Platform library, which seems to be a well-thought-of implementation of an MVP API. Besides meta data driven approach (annotations, boilerplate), it also supports hierarchical presenters and more sophisticated use cases through the use of presenter proxies (authentication, code splitting, etc).

h4. Relationships
Example taken from the current codebase (server/threads/...)

 http://community.jboss.org/servlet/JiveServlet/showImage/102-16462-9-11324/mvp-example.png  http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16462-9-11324/450-360/mvp-example.png 
h4. Source Code Examples

-  https://github.com/heiko-braun/as7-console/blob/master/standalone/src/main/java/org/jboss/as/console/client/server/deployments/DeploymentToolPresenter.java A presenter implementation 
- A corresponding view (https://github.com/heiko-braun/as7-console/blob/master/standalone/src/main/java/org/jboss/as/console/client/server/deployments/DeploymentToolViewImpl.java)
--------------------------------------------------------------

Comment by going to Community
[http://community.jboss.org/docs/DOC-16462]

Create a new document in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110210/cf094de1/attachment.html 


More information about the jboss-dev-forums mailing list