Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Flex 3 :Is it good to have a FrontController per Module??  RSS feed

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,


Read that there should be a Single Front Controller per application .

But how to manage this as my application is having number of Modules .

Is it good to have a FrontController per Module??

Please share your ideas.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Ginven what a FrontController is for why would you do this?

If you are worried about mixing view and business logic there are patterns for seperating these (see Cairgngorm or PureMVC etc. )
 
Joel Hooks
author
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Kiran V wrote:Hi ,


Read that there should be a Single Front Controller per application .

But how to manage this as my application is having number of Modules .

Is it good to have a FrontController per Module??

Please share your ideas.


In a modular application you generally have a shell. The shell facilitates the communication between modules via interfaces. So when considering modules as independent sub-applications, having a FrontController (this is a Cairngorm approach) for each module with a top-level shell FrontController is a good approach.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!