JBoss Community

Poincut Expression

created by Buddhadeb Ghosh in JBoss AOP Development - View the full discussion

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

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

Start a new discussion in JBoss AOP Development at Community