[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] thisJoinPointStaticPart
|
Note that in such a situation it's no problem to capture the
"thisJoinPoint" object in the advice and then pass it to the method as
an argument.
Eric
> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-
> bounces@xxxxxxxxxxx] On Behalf Of Conway. Fintan (IT Solutions)
> Sent: Tuesday, August 15, 2006 5:56 AM
> To: wes@xxxxxxxxxxxxxx; aspectj-users@xxxxxxxxxxx
> Subject: RE: [aspectj-users] thisJoinPointStaticPart
>
> Doh,
>
> Of course it is! I was trying to use it in a method called from an
> advice.
>
> Sometimes it is the simple things that trip us up.
>
> Many thanks,
>
> Fintan
>
> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx
> [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Wes
> Sent: 15 August 2006 09:58
> To: aspectj-users@xxxxxxxxxxx
> Subject: Re: [aspectj-users] thisJoinPointStaticPart
>
>
> Hi -
>
> this..JoinPoint.. reflective variables are only valid in the body of
> advice, as discussed here:
>
> http://www.eclipse.org/aspectj/doc/released/progguide/semantics-
> advice.h
> tml#reflective-access-to-the-join-point
>
> thisJoinPoint{StaticPart} refers to the join point being advised, and
> thisEnclosingJoinPointStaticPart refers to the join point enclosing
the
> current one, if known. They are of type JoinPoint or
> JoinPoint.StaticPart.
>
> Does that help? - wes
>
>
> ------------Original Message------------
> From: "Conway. Fintan (IT Solutions)" <Fintan.Conway@xxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Date: Tue, Aug-15-2006 1:43 AM
> Subject: [aspectj-users] thisJoinPointStaticPart Hi *,
>
> I am trying to retrieve the method which is firing an advice. I am
> trying to use 'thisJoinPointStaticPart.toString()'.
>
> When I type thisJoinPointStaticPart into Eclipse it shows up in bold
> and purple - so far so good. However when I save the aspect file,
> Eclipse gives me the error - "
> thisJoinPointStaticPart cannot be resolved" . I have imported
> org.aspectj.lang.*; I am using Eclipse 3.2 and AJDT 1.4. Any advice
> (pun
> intended) is appreciated, Regards, Fintan PS same problem for
> thisJoinPoint.
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> * ** *** ** * ** *** ** * ** *** ** *
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed.
> Any views or opinions presented are solely those of the author, and do
> not necessarily represent those of ESB.
> If you have received this email in error please notify the sender.
>
> Although ESB scans e-mail and attachments for viruses, it does not
> guarantee that either are virus-free and accepts no liability for any
> damage sustained as a result of viruses.
>
> * ** *** ** * ** *** ** * ** *** ** *
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users