0

I'd like to define aspectj joinpoints not using annotations and string constants like this:

@Before("execution(* my.class.getText(..))")

but using aspecj language, like in this example:

pointcut myMethod(): myClass() && execution(* *(..));

or

before (): getText() {
    Trace.traceEntry("" + thisJoinPointStaticPart.getSignature());
}

Is there any good examples of how to add aspectj to the project to make maven compile this language properly and how to re-write @Before, @Around etc. annotations in aspecj language?

Bohdan Nesteruk
  • 794
  • 17
  • 42

1 Answers1

1

Here are some resources:

Here on Stack Overflow, I have also answered many questions about how to configure AspectJ Maven Plugin, e.g. here.

halfer
  • 19,824
  • 17
  • 99
  • 186
kriegaex
  • 63,017
  • 15
  • 111
  • 202