Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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


Back to the top