This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Intercepting Filter design pattern in class diagram

 
ananthakrishnan ramachandran
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How to use show the flow of Intercepting Filter design pattern in class diagram in JSF .Is the below mentioned flow correct
JSF page->Intercepting Filer->Managed Bean
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the filter is created for specific pages then your flow is right. If the filter is considered to be for all requests then showing dependency of controller on filter makes more sense and I have done the this.
 
Joao Bosco Jares
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajan Choudhary wrote:If the filter is created for specific pages then your flow is right. If the filter is considered to be for all requests then showing dependency of controller on filter makes more sense and I have done the this.


Hi friends,

The class diagram below sounds good for JSF class diagram implementation?

client->jsp->frontcontroller->filter->managedbean

Best Regards,
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks ok to me. looks like you have filter chains, not sure the about the purpose of ExceptionHandleFilter at that place. faces-config is not required to be shown at all. If you show this one then why to leave web.xml as filter chain will be configured there. remember your business logic model classes take more importance than anything else in the class diagram. Do not miss out any backing bean model class.

As per cade's book, JSP uses Controller and controller uses model beans and that's enough. I did this.
 
Joao Bosco Jares
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajan,

thanks a lot one more time!! One more beer in my account for you..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic