decorator : Java Glossary

decorator
A design pattern that lets attach additional responsibilities/capabilities to an object dynamically with subclassing. It is sometimes called a wrapper. Inside the object are references to delegate objects that do the real work. They can be dynamically replaced. The clients of the class are unaware of the existence of the delegates. Wrapper methods hide the mechanism. The class just seems extraordinarily capable flexible and extenable.

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/decorator.html J:\mindprod\jgloss\decorator.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.214]
You are visitor number 13,826.