Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock Question in Design Pattern

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I faced the following question in one of the mock exam.
Can any body tell me why the answer is A. i thought it will be C.


Let's assume you are developing a web application. One of the requirements of this application is to design a flexible framework so that services can be easily added and removed without affecting existing components.

For instance, services such as logging, authentication, debugging, compressing and encoding output, etc.. should be "pluggable" without requiring changes to the core application code. Which of the following design patterns can be used in this situation?

# A) Intercepting Filter
# B) Transfer Object
# C) Business Delegate
# D) Data Access Object

* [Ans: A]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the greatest advantages of filters is that you can add and remove them without the need to change any other code in the application.

The question also lists some of the typical uses of filters.

I'm curious as to what made you believe the answer was Business Delegate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic