[aspectc-user] Re: aspectc-user Digest, Vol 28, Issue 4

Wagner Salazar salazar.wagner at gmail.com
Thu Mar 8 20:40:25 CET 2007


Hi,

I got the source.. and I didnĀ“t find a class with the TJP name. I
found a ThisJoinPoint.. and once more.. Do I have to download the
source and compile it...to used a construction like that ?

On 3/8/07, aspectc-user-request at aspectc.org
<aspectc-user-request at aspectc.org> wrote:
> Send aspectc-user mailing list submissions to
> 	aspectc-user at aspectc.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.aspectc.org/mailman/listinfo/aspectc-user
> or, via email, send a message with subject or body 'help' to
> 	aspectc-user-request at aspectc.org
>
> You can reach the person managing the list at
> 	aspectc-user-owner at aspectc.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of aspectc-user digest..."
>
>
> Today's Topics:
>
>    1. Can I call proceed in a simple method (Wagner Salazar)
>    2. Re: Can I call proceed in a simple method (Fabian Scheler)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 7 Mar 2007 16:03:00 -0300
> From: "Wagner Salazar" <salazar.wagner at gmail.com>
> Subject: [aspectc-user] Can I call proceed in a simple method
> To: aspectc-user at aspectc.org
> Message-ID:
> 	<83a8a0350703071103w7e84a9a5s7243afe14d40f534 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I would call proceed in a simple method like this.
> __________________________________________________________
> code of aspect
>
>     pointcut executeTreat() = execution(" void Operations::treatAdd()");
>     advice executeTreat() : around() {
>       SomeClass *obj = SomeClass::getInstance();
>       obj->control_advice(tjp);
>     }
> __________________________________________________________
> .h of a class
>
> #include <?????>
> class SomeClass  {
>     public:
>        void control_advice(?????);
> }
> __________________________________________________________
> .cc of a class
>
> void SomeClass::control_advice(?????){
>    tjp->proceed();
> }
> __________________________________________________________
>
> How can I do it? How can I pass this possibility for a method? What I have
> to include?
> thxs for any help!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://p15111082.pureserver.info/pipermail/aspectc-user/attachments/20070307/252caf42/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Wed, 7 Mar 2007 21:47:34 +0100
> From: "Fabian Scheler" <fabian.scheler at gmail.com>
> Subject: Re: [aspectc-user] Can I call proceed in a simple method
> To: aspectc-user at aspectc.org
> Message-ID:
> 	<69dd805e0703071247y594d41b1y4d4ca59dca344294 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> As far as I remember you have to use a template class that is
> specialized for the particular joinpoint class, like this (maybe I'm
> missing some syntax details, so look them up in the manual to be
> sure):
>
> > __________________________________________________________
> > code of aspect
> >
> >     pointcut executeTreat() = execution(" void Operations::treatAdd()");
> >     advice executeTreat() : around() {
> >       SomeClass *obj = SomeClass::getInstance();
> >       obj->control_advice(tjp);
> >     }
>
>      advice executeTreat() : around() {
>        SomeClass< JoinPoint > *obj = SomeClass< JoinPoint >::getInstance();
>        obj->control_advice(tjp);
>      }
>
>
> > __________________________________________________________
> > .h of a class
> >
> > #include <?????>
> > class SomeClass  {
> >     public:
> >        void control_advice(?????);
> > }
> > __________________________________________________________
> > .cc of a class
>
> template < class TJP > class SomeClass  {
>     public:
>        void control_advice(TJP *tjp);
> }
>
>
> void SomeClass::control_advice(TJP *tjp){
>     tjp->proceed();
> }
>
>
> ------------------------------
>
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>
>
> End of aspectc-user Digest, Vol 28, Issue 4
> *******************************************
>




More information about the aspectc-user mailing list