[PRL] aspects to eliminate aspects

Jeffrey Palm jpalm at ccs.neu.edu
Wed May 18 12:16:17 EDT 2005


Jeffrey Palm wrote:
> Matthias Felleisen wrote:
> 
>> Question 1: Is it possible to write an aspect that monitors a class to 
>> discover the intervention of _other_ aspects?
> 
> This is ugly: You could also place two pieces advice on every method not 
> in that aspect (the intervention discoverer).  One before advice that 
> walks the stack the see if the method one up is an aspect and two up is 
> the class in question.  If so throw an exception.  That exception is 
> caught by the second piece of advice, which is around advice.

This doesn't work.  Apologies.

Jeff
-- 
Jeffrey Palm --> http://www.ccs.neu.edu/home/jpalm



More information about the PRL mailing list