This content has been marked as final.
Show 3 replies
-
1. Re: Help with pointcut
kabirkhan Dec 2, 2008 3:45 PM (in response to csr1978)all(com.gm.tnt..)
should work, although I think that is aop 2.0.0 only:
http://www.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/reference/en/html/pointcuts.html#pointcuts-wilcards -
2. Re: Help with pointcut
dermas Dec 3, 2008 3:54 AM (in response to csr1978)"kabir.khan@jboss.com" wrote:
all(com.gm.tnt..)
should work, although I think that is aop 2.0.0 only:
http://www.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/reference/en/html/pointcuts.html#pointcuts-wilcards
But doesnt the doc say that it wont work?.. Is used to specify any number of parameters in an constructor or method expression. .. following a package-name is used to specify all classes from within a given package but not within sub-packages. e.g org.acme.. matches org.acme.Foo and org.acme.Bar, but it does not match org.acme.sub.SubFoo.
-
3. Re: Help with pointcut
kabirkhan Dec 3, 2008 8:31 AM (in response to csr1978)I thought you wanted to restrict to the package and not sub-packages.
If you want to intercept everything in the package and sub-packages this should work:all(com.gm.tnt.*)