my dog learned polymorphism
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Confused About Decorator Pattern With Respect to Filter Wrappers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Confused About Decorator Pattern With Respect to Filter Wrappers" Watch "Confused About Decorator Pattern With Respect to Filter Wrappers" New topic
Author

Confused About Decorator Pattern With Respect to Filter Wrappers

Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 771
Hi,
I am on this topic for over past two days scratching my head trying to apply decorator pattern on the example given in HFJS
in filters chapters about compression a response stream by writing a filter. Decorator pattern applies a concept of a component,
then a concrete component, then a decorator comes into picture and then the concrete decorator. Can someone explain me in an
elaborate way how we can apply decorator pattern to the example given in HFJS. I am very confused over it.
BR,


Prithvi/Beenish,
My Blog, Follow me on Twitter,Scjp Tips, When you score low in mocks, Generics,Scjp Notes, JavaStudyGroup
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Confused About Decorator Pattern With Respect to Filter Wrappers
 
Similar Threads
Decorator pattern, caching
Decorator in Java
State Pattern
HF Design Patterns: Recognizing the Patterns
HeadFirst Design Patterns - Decorator Chapter