Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] [newbie] inlining advices, inserting code in each pointcut occurence



Koder,

Did you mean to ask whether the AspectJ compiler will inline code at
advised join points? If so the answer is sometimes. Around advice can be
inlined unless "-XnoInline" is specified. Also the call to a test used in
an "if()" PCD is inlined. However in general the body of a piece of advice
is _not_ inlined because this would break modularity i.e. if you changed
the advice implementation you would have to reweave all your code.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/

Pawel List <pawel.list@xxxxxxxxx>@eclipse.org on 20/01/2005 12:37:18

Please respond to aspectj-users@xxxxxxxxxxx

Sent by:    aspectj-users-admin@xxxxxxxxxxx


To:    aspectj-users@xxxxxxxxxxx
cc:
Subject:    [aspectj-users] [newbie] inlining advices, inserting code in
       each pointcut occurence


hi,

is there any possibility to force AspectJ compiler to inline a piece
of code directly into a pointcut? that means, such code would be
copied into and not referenced in each pointcut.

thanks in advance,
koder
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top