This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Confused About Decorator Pattern With Respect to Filter Wrappers
posted 4 years ago
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.