The Artima Developer Community
Sponsored Link

.NET Buzz Forum
AOP and the decorator pattern

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Udi Dahan

Posts: 882
Nickname: udidahan
Registered: Nov, 2003

Udi Dahan is The Software Simplist
AOP and the decorator pattern Posted: Dec 10, 2005 3:49 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Udi Dahan.
Original Post: AOP and the decorator pattern
Feed Title: Udi Dahan - The Software Simplist
Feed URL: http://feeds.feedburner.com/UdiDahan-TheSoftwareSimplist
Feed Description: I am a software simplist. I make this beast of architecting, analysing, designing, developing, testing, managing, deploying software systems simple. This blog is about how I do it.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Udi Dahan
Latest Posts From Udi Dahan - The Software Simplist

Advertisement
Found the new AOP article on msdn via Jimmy's entry and wondered: How far can you go with the decorator pattern before you need to step up to AOP? The decorator pattern being that which gives us pseudo multiple inheritence, best used for creating more specific behaviors of objects, done by wrapping with a class that implements the same interface. In the example from msdn, ObedientDog would inherit from Dog, and be able to wrap Dog. Thus, in order to create an ObedientPoodle, we would do something like this: Dog d = new ObedientDog(new Poodle()); ObedientDog could then override the method Heel, which an ordinary Poodle would just ignore, creating a Poodle that actually behaved like an obedient dog. But fiction aside, does anyone have an example of how they used AOP where decorators wouldn't suffice?...

Read: AOP and the decorator pattern

Topic: Pummeled By Snow Previous Topic   Next Topic Topic: Making modal dialog windows work in ASP.Net the easy way

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use