[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] How do I weave aspects into SOME classes in a jar?
|
Ron,
Thank you for replying my question. It was my mistake that I had an old
aspect zip file in classpath.
Aspectj works fine on both jars and classes.
----------------------------------------------------------
Dr. Bo Yi
WAS L3 Support
IBM Toronto Lab
A2-713/Q2Z/8200/MKM
8200 Warden Ave. Markham ONT. L6G 1C7
Phone: 905-413-4819
Tie Line: 969-4819
E-Mail: boyi@xxxxxxxxxx
|---------+------------------------------->
| | "Ron Bodkin" |
| | <rbodkin@newaspects.|
| | com> |
| | Sent by: |
| | aspectj-users-admin@|
| | eclipse.org |
| | |
| | |
| | 12/19/2003 12:35 PM |
| | Please respond to |
| | aspectj-users |
|---------+------------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
| |
| To: aspectj-users@xxxxxxxxxxx |
| cc: |
| Subject: Re: [aspectj-users] How do I weave aspects into SOME classes in a jar? |
| |
| |
>-------------------------------------------------------------------------------------------------------------------------------|
Bo,
Did you mean to exclude execution join points only in classes that extend
Throwable? This advice should affect all classes in the com.myco package
and any of its subpackages except for those that extend Throwable. Except,
of course, you mean execution(...) not execute
Or did you mean to exclude some other set of join points?
Ron Bodkin
Chief Technology Officer
New Aspects of Security
m: (415) 509-2895
> ------------Original Message------------
> From: Bo Yi <boyi@xxxxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Date: Thu, Dec-18-2003 1:20 PM
> Subject: [aspectj-users] How do I weave aspects into SOME classes in a
jar?
>
>
>
>
>
> Hi All,
>
> I try to weave aspect into a jar file, but I only wants some classes have
> the aspect.
>
> I tried the following aspect:
>
> pintcut myClasses() : within(com.myco..*) && ! within
> (java.lang.Throwable+);
>
> before() : execute(* *(..)) && myClasses() { ...}
>
> After jac -injar some.jar -outjar somenew.jar
>
> the somenew.jar has aspect code in every classes. What was wrong with my
> aspect?
>
> Thanks in advance.
> ----------------------------------------------------------
> Dr. Bo Yi
> WAS L3 Support
> IBM Toronto Lab
> A2-713/Q2Z/8200/MKM
> 8200 Warden Ave. Markham ONT. L6G 1C7
> Phone: 905-413-4819
> Tie Line: 969-4819
> E-Mail: boyi@xxxxxxxxxx
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users