This content has been marked as final.
Show 5 replies
-
1. Re: Why it's not working?
ad-rocha Oct 29, 2004 10:18 AM (in response to ad-rocha)Sorry... the correct method name in MyInstrumentation is instrument, not invoke
-
2. Re: Why it's not working?
bill.burke Oct 29, 2004 10:33 AM (in response to ad-rocha)you need to declare the Aspect in XML before referencing it.
<aspect class="aftt.weaving.MyAspect"/>
-
3. Re: Why it's not working?
ad-rocha Oct 29, 2004 10:42 AM (in response to ad-rocha)Thanks Bill, it's working now.
But why have I to referece the aspect if the advice tag define the aspect class?<advice name="instrument" aspect="aftt.weaving.MyAspect"/>
-
4. Re: Why it's not working?
bill.burke Oct 29, 2004 10:47 AM (in response to ad-rocha)Because aspect also has a scope attribute which by default is PER_VM
<aspect class="Foo" scope="PER_JOINPOINT"/>
Its also important because an aspect can take configuration as well.
Check out this doco:
http://docs.jboss.org/aop/aspect-framework/reference/en/html/xml.html#xml-aspect2 -
5. Re: Why it's not working?
ad-rocha Oct 29, 2004 11:15 AM (in response to ad-rocha)Hum... thanks!