This is a common mistake when connecting class classes. This means that your aspect class in this case, LoggingAspect not been converted to an aspect that can be applied.
The 2 methods to weave your class into an aspect use the AJDT Eclipse plugin or the Maven AspectJ compiler plugin .
There are 3 ways to interweave aspects:
- Creation at compilation time : compile either the target source or the aspect classes through the dedicated aspectj compiler;
- Compilation followed by compilation : introduction of instructions on aspects of already compiled classes (can be applied to JAR files)
- Three load time : enter aspect instructions into byte code during class loading, i.e. load the tool class instead of "raw",
Before a class of a class can be applied to a class, it must first be "woven" into an aspect.
The woven class aspect will contain these static methods .
Reimeus
source share