Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic