Cathi talks about Extender Providers

A while back, Cathi Gero and I got into an extended discussion about the Decorator design pattern, and she brought up the .NET Extender Provider implementation, which I frankly admit I hadn’t seen before. Now she’s blogged about it and based on what I read there, I’ve got to admit, it’s a lot more like an aspect than an actual decorator–the ProvideProperty attribute essentially acts as a pointcut, and the extender provider itself as the advice. (The weaver is arguably either VS.NET or the WinForms library, I’m not entirely sure which.)

Which, of course, begs the question–now that JDK 1.5 has annotations, could one do something similar in Java? Yet another little research project to go onto the list….