Actually, it will be more complex question. I want use AspectJ only in test purpose. Have found suggestion to use if() JointPoint and some static boolean field. Also, first I start using aspect as inner static class of my base test method. After some experiments I replaced it to own class, but actually don’t got the result, that I want.
Tag: aspectj-maven-plugin
OpenClover – Getting to work with AspectJ
I’m trying to use Openclover with a project that uses AspectJ and that instruments aspects into its code. The pom.xml has these dependencies with relation to AspectJ: And these plugins: I’m using two plugins to do this: clover-maven-plugin which is a code coverage tool and clover-aspectj-compiler, a wrapper for AspectJ compiler which allows code instrumentation using OpenClover. The errors I
Adding aspectJ language to define joinpoints
I’d like to define aspectj joinpoints not using annotations and string constants like this: but using aspecj language, like in this example: or 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? Answer Here are some resources: the
AspectJ: How to weave an aspect library into a Java project
I build small library (Java and Maven) – using AspectJ. Library must be independent. Library deliver Aspects and Annotations. Function of library is – “call advice when executed a method with specific annotation”. All is ok when I use everything in one module, but problem appers when i separate library and project with classes which advice must be applied. I