[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Re - Profiling Public Interface of an API
|
Hi Ron,
I am not building with Eclipse I am building
with Ant. I use Eclipse just to edit the source files
& Debug.
I think I was able to manage the problem by
moving the Aspect code into lib2(before it was in
lib1) and building with AspectJ both lib1 & lib2.
Thanks for your help.
Virgil
--- aspectj-users-request@xxxxxxxxxxx wrote:
> Send aspectj-users mailing list submissions to
> aspectj-users@xxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
>
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> or, via email, send a message with subject or body
> 'help' to
> aspectj-users-request@xxxxxxxxxxx
>
> You can reach the person managing the list at
> aspectj-users-owner@xxxxxxxxxxx
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of aspectj-users digest..."
>
>
> Today's Topics:
>
> 1. Re: aspectj-users Digest, Vol 13, Issue 58
> (mg@xxxxxx)
> 2. RE: RE: Re - Profiling Public Interface of an
> API (Ron Bodkin)
> 3. RE: New AspectJ compiler is very slow under
> AJDT (Ron DiFrango)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 20 Mar 2006 12:41:43 +0100
> From: mg@xxxxxx
> Subject: [aspectj-users] Re: aspectj-users Digest,
> Vol 13, Issue 58
> To: aspectj-users@xxxxxxxxxxx
> Message-ID: <43E4B8E0009B6D37@xxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-15
>
> ----- The following is an automated response
> ----- to your message generated on behalf of
> mg@xxxxxx
>
>
> Morten Grum is out of office until 30. November
> 2005.
>
> www.phc.dk
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 20 Mar 2006 13:49:35 +0100
> From: "Ron Bodkin" <rbodkin@xxxxxxxxxxxxxx>
> Subject: RE: [aspectj-users] RE: Re - Profiling
> Public Interface of an
> API
> To: <aspectj-users@xxxxxxxxxxx>
> Message-ID: <003301c64c1c$bf224fd0$0812020a@Aqua>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Virgil,
>
> Let me check my understanding. Do you have both WEB
> and API defined as
> AspectJ projects in Eclipse? If clean and rebuild
> both projects, do you see
> any annotations for advice on your code? How did you
> add API to the
> aspectpath of WEB?
>
> I would start by making sure you have everything
> configured correctly, then
> work on making the pointcuts work properly once you
> know you are weaving
> correctly. For example, what happens if you add
> these aspects to your API
> project? To your WEB project? If you are weaving
> into WEB, you should see
> warnings in your Eclipse problems view, and when you
> run, you should see
> output when you first load classes and interfaces.
>
> Also, if you turn on weaving messages in your
> AspectJ project properties,
> what output do you see?
>
> public aspect DebugIntegration1 {
> declare warning: staticinitialization(*):
> "staticinitalization";
> }
>
> public aspect DebugIntegration2 {
> before(): staticinitialization(*) {
> System.out.println("Entering
> "+thisJoinPointStaticPart);
> }
> }
>
> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf
> Of Trasca Virgil
> Sent: Monday, March 20, 2006 12:42 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [aspectj-users] RE: Re - Profiling Public
> Interface of an API
>
>
> Hi Ron,
>
> sorry if I begin to be to insistent :-).
>
> I tried to write something like
>
> pointcut whenAPIMethodIsCalled(): call (public *
> APILink..* (..)) && !within(TestAPI);
>
> pointcut whenWEBMethodIsCalled(): call (public *
> prmjspbean..* (..)) && !within(TestAPI);
>
> pointcut externalAPIMethodIsCalled() :
> whenAPIMethodIsCalled() &&
> cflowbelow(whenWEBMethodIsCalled());
>
> But this again resulted with 0 Join points.
> I tried also the within like you said => 0 Join
> Points
>
> So I feel the problem is that my aj code is in
> API(lib1) and I am weaving the WEB(lib2) with API in
> aspectpath(like you said) but this is maybe not
> enough. I need the aj code in the Web(lib2)?
> Or maybe is something related with loadtime
> weathing?
> I am using iajc task from ant for using.
>
> Thanks again,
> Virgil
>
>
> --- aspectj-users-request@xxxxxxxxxxx wrote:
>
> > Send aspectj-users mailing list submissions to
> > aspectj-users@xxxxxxxxxxx
> >
> > To subscribe or unsubscribe via the World Wide
> Web,
> > visit
> >
> >
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > or, via email, send a message with subject or body
> > 'help' to
> > aspectj-users-request@xxxxxxxxxxx
> >
> > You can reach the person managing the list at
> > aspectj-users-owner@xxxxxxxxxxx
> >
> > When replying, please edit your Subject line so it
> > is more specific
> > than "Re: Contents of aspectj-users digest..."
> >
> >
> > Today's Topics:
> >
> > 1. RE: Re - Profiling Public Interface of an
> API
> > (Ron Bodkin)
> > 2. RE: Execution joinpoint and synchronization
> > (Ron Bodkin)
> >
> >
> >
>
----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sat, 18 Mar 2006 10:26:57 -0800
> > From: "Ron Bodkin" <rbodkin@xxxxxxxxxxxxxx>
> > Subject: RE: [aspectj-users] Re - Profiling Public
> > Interface of an API
> > To: <aspectj-users@xxxxxxxxxxx>
> > Message-ID: <006d01c64ab9$8b441d60$0202a8c0@Aqua>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > You need to put lib1 in the aspectpath of lib2
> also,
> > not just the classpath.
> > The weaver only applies the effects of aspects in
> > the aspectpath (when you
> > build statically, e.g., in AJDT). In Eclipse, if
> you
> > open the project
> > properties, click on "AspectJ Aspect Path" to
> > configure this...
> >
> > -----Original Message-----
> > From: aspectj-users-bounces@xxxxxxxxxxx
> > [mailto:aspectj-users-bounces@xxxxxxxxxxx] On
> Behalf
>
=== message truncated ===