[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Why AspectJ do not have "Advice name"?

Hi everyone:

These days, i am thinking about one interesting question - why aspectj
do not have the "advice name"? As well all know, in aspectj, we define
the advice code just like below:

aspect A {

pointcut B...

before:B() { }


before:B() is the advice code, why don't it have a name, just as B (the
pointcut name)?

If that, the aspect may be defined as:

advice advice_name before:B() {....}

does anyone thing it is better?

I am wondering why the AspectJ designers do not assign a name to the

Does anybody know that? :-)

Thanks a lot/best regards.

Sai ZHANG ( 张赛)
School Of Software, SJTU