Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] adding a new operator to aspectj compiler


This would be a great project to do using the abc AspectJ compiler (http://www.aspectbench.org) which has been explicity designed to make it easy to experiment with new language features (much easier than working in the AspectJ codebase itself).

I recall that one of the abc team themselves were working on a feature very like this, so you might like to touch base with them.

Regards, Adrian.

-- Adrian
Adrian_Colyer@xxxxxxxxxx



Gunny Lee <gunny.lee@xxxxxxxxx>
Sent by: aspectj-dev-admin@xxxxxxxxxxx

11/03/2005 04:21

Please respond to
aspectj-dev@xxxxxxxxxxx

To
aspectj-dev@xxxxxxxxxxx
cc
Subject
[aspectj-dev] adding a new operator to aspectj compiler





I would like to add a new operator to the AspectJ compiler, called join.

The purpose of the join operator would be to take two aspects and
(surprise) join them as one. For example, consider you have an aspect
where after A.foo() has been called, it makes a call to the logger
(basically as an after advice). Now say you have another aspect where
after A.bar() has been called, it makes the same call to the logger.
Suppose you want to combine these two aspects (it may be easier to
think of them as services), and say you want to make the call to the
logger only after *both* A.foo() and A.bar() has been called. This is
what the join operator would do.

My question is, how hard is it to add a new operator to the AspectJ
compiler? Is this feasible for one person to do? How much development
time am I looking at?

Thanks,
Gunny
_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-dev


Back to the top