[jboss-dev-forums] [JBoss AOP Development] - Poincut Expression

Buddhadeb Ghosh do-not-reply at jboss.com
Thu Sep 9 07:10:11 EDT 2010


Buddhadeb Ghosh [http://community.jboss.org/people/bghosh1] created the discussion

"Poincut Expression"

To view the discussion, visit: http://community.jboss.org/message/560850#560850

--------------------------------------------------------------
Hi


I am new to JBoss AOP and at the beginning I am stuck with a poincut expression.
I am behind a logger aspect which should log every methods under "com.mycompany" and it's sub packages.

I come from spring background where "execution(* com.mycompany..*.*(..))" works.

Here I  tried with "execution(com.mycompany.*->*(..))" as suggested in some site..but it never works.
I went through AOP Docs  http://docs.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/reference/en/html/pointcuts.html http://docs.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/reference/en/html/pointcuts.html
It says ".. following a package-name is used to specify all classes from within a given package ut not within sub-packages"
but it nowhere says what should be done to include sub-packages.


Can anybody point out where I am going wrong. 


By the way.. I am running in a standalone application with jboss-aop-single.jar in classpath 
and along with vm args :
-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader
-Djboss.aop.class.path=D:\Payer-Wrkspc\dc-common\target\classes\com\intuit\payer\dc\common\aspect
-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader
-Djboss.aop.class.path=<--path to my aspect class-->
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/560850#560850]

Start a new discussion in JBoss AOP Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2028]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100909/ca560c2c/attachment.html 


More information about the jboss-dev-forums mailing list