So I've got an aspect with a method declared with the following expression:
@Before("execution(* aaa.bbb.ccc.*.*(..))")
This works perfectly for all classes in the package aaa.bbb.ccc
. Now, however, I would like to capture all classes in aaa.bbb
, including those in aaa.bbb.ccc
. So I tried backing it up to here:
@Before("execution(* aaa.bbb.*.*(..))")
This only grabs the classes from aaa.bbb
, though, and ignores classes from aaa.bbb.ccc
. Is there a way I can make the expression search for all subpackages recursively?
execution(* aaa.bbb..*(..))
– Grundy