Re: FW: [aspectwerkz-user] RE: Initializing references from a "before " aspect

Alexandru Popescu <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[quote Hindin, Avi::on 4/19/2005 2:22 PM]
> Hi Alex,
> 
>  
> 
> I try it and I'm getting this error:
> 
> <advice name="aroundGreeting(testAOP.MyCustomJoinPoint jp)" type="around"
> bind-to="greetMethodPCut"/>
> 
>  
> 
> org.codehaus.aspectwerkz.exception.DefinitionException: could not find
> advice method [aroundGreeting(testAOP.MyCustomJoinPoint jp)] in
> [testAOP.MyAspect2] (are you using a compiler extension that you have not
> registered?) (are you using XML defined advice, with StaticJoinPoint
> bindings without specifying the fullsource like signature?)
> 
>  
> 
> Thanks,
> 
> Avi.
> 
>  
> 
> -----Original Message-----
> From: Alexandre Vasseur [mailto:[email protected]] 
> Sent: Tuesday, April 19, 2005 11:50 AM
> To: [email protected]
> Subject: Re: [aspectwerkz-user] RE: Initializing references from a "before"
> aspect
> 
>  
> 
> Hi
> 
>  
> 
> I know our doc is bad on that part.
> 
> When the advice signature is not just "(JoinPoint anyName)" or
> 
> "(StaticJoinPoint anyName)" you have to write it entirely in the XML
> 
> using full qualified names.
> 
>  
> 
> <advice name="aroundGreeting(YOUR.PACKAGE.MyCustomJoinPoint jp)"
> 
> type="around" bind-to="greetMethodPCut"/>
> 
>  
> 
>  
> 
>  
> 
> (doc snip - to be fixed)
> 
> #  name - [mandatory] the name of the advice is the name of the method
> 
> in the aspect class that implements the advice, with an optional
> 
> method signature if pointcut with signature are used. Abbreviations
> 
> can be used in this signature, including for the JoinPoint or
> 
> StaticJoinPointparameter. The signature must name its parameters (as
> 
> if it was some source code) like advice3(JoinPoint jp, int i). The
> 
> method defined this way must exist with the same signature in the
> 
> aspect class hierarchy.
> 
>  
> 
>  
> 
> Alex
> 
>  
> 
> 
Can you post the main parts here pls (full aop.xml, custom jp definition).

- --:alex |.::the_mindstorm::.|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCZQrhOCPjdDT2FEURAum/AJ4sh7bmVE6IszDoBgnwQyiQizEynwCgxqWJ
3hHCm/ws3CAqQ5iBy+V5aII=
=ECfS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.