test.core and I want an aspect around every class in that or a sub-package with the name pattern Service.
sth like this: "execution(public de.test.core..Service.*(..)" but it doesn t seem to work.
Is aspectJ even able to match to a class pattern?
Match all methods defined in beans whose name ends with ‘Service’.
bean(*Service)
Match by Service pattern
@Pointcut("within(*..*Service)")
public void inServiceClass() {}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With