Re: [Meinds-developers] Aspects: pro's and con's
Brought to you by:
emcs,
rickardoberg
|
From: Rickard <ri...@xp...> - 2001-11-30 12:33:07
|
Dmitri Colebatch wrote: > I've just realised a problem with this... the common interface... you > would have to do without the common interface for this to work, which > means that its not too dissimilar to how it is now really... you just > get a new aspect... Correct. And the common interface in the example is purely for readability (i.e. easily see what aspects an Individual have). Remove it if you want to. You'd have to change IndividualBuilder to return Object, but other than that you're ok. Or, change the Individual interface to not extend any interfaces, but attach those aspects anyway. Works too. > maybe we could have a method getAspect(Object resource, Class > aspect) where the class is the interface represneting the aspect (and > hence interceptors/behaviour) that you want...? =ObjectBuilder. /Rickard -- Rickard Öberg |