Hi Arvind,

AspectJ does not support crosscutting on local variables. Ther are only few
works related to them. You can check these works:

Énfasis, a framework that uses bytecode instrumentation to implement a basic
model for crosscutting on local variables. Currently, this framework has
been complementing with a layer to provide a specific domain language for
defining aspects related to local variables.
http://portal.acm.org/citation.cfm?id=1363752

Bugdel, a tool based on AOP for debugging. This tool uses local variables.
http://www.csg.is.titech.ac.jp/projects/bugdel/index-e.shtml

Fine-grained generic aspects, an approach that uses Logic Meta-Variables
http://www.eecs.ucf.edu/FOAL/papers-2006/RhoKnieselAppeltauer.pdf

There are other approaches, but (from my knowledge) without implementations.
Also note that local variable crosscutting is extremely fragile.

Best regards
Ulises


On Sun, Mar 14, 2010 at 4:19 AM, Arvind Krishnaswamy <
[email protected]> wrote:

> Hello All,
>
> I am very new to AOP and aspectj. I have a little background in bytecode
> instrumentation where I am freely able to intercept classes during load time
> and add some local variables to selected methods to maintain my
> instrumentation state during method execution. I know there is something
> called inter type declaration in aspectj using which I can declare
> fields/methods of classes that I know the names of. I really need to be able
> to maintain some working state inside selected methods using local variables
> (so that I don't have to worry about threads overwriting each others'
> state). Can I accomplish this using aspectJ and if so, how? This would be
> very helpful. I searched the forums and the net and there is surprisingly
> less discussion around this topic. Also, how can I add members to classes if
> I don't know their names in advance (while intercepting them during load
> time). Please help. Thanks in advance
>
> -Arvind
> ------------------------------
> Your Mail works best with the New Yahoo Optimized IE8. Get it 
> NOW!<http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/>
> .
>
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to