From: hammett <ha...@uo...> - 2004-10-29 18:00:37
|
I was just watching Simpsons (third season) and thinking about this problem when I realised that we both were using the wrong approach :-) How a mixin would solve this problem: 1. Create a proxy for Contry, for example, and mix a Materialize mixin 2. In your Interceptor, if not loaded, you can cast the proxy to the mixin interface and execute the Materialize 3. The Materialize will populate the proxy fields. No second country object... 4. Done! What you think about it, Deyan? The problem: only Aspect# today is capable of dealing with mixins, and we need to refactor it to use the new dynamic proxy interfaces and strategies. On the other hand I think nothing stop us of provide mixin capabilities directly in DynamicProxy, and we can make the Aspect# code simpler. I think I can do it in about one hour, more or less... Henry, do you have anything against that? After all, you are the author of the original mixin code... -- Cheers, hammett http://www.digitalcraftsmen.com.br/~hammett |