I'am building a Rest server with aspectj. For synchronization i want to use aspects. I defined such pointcut to capture all the points where update and delete events happen: I defined an annotation and use the annotation to capture methods to sync:
synchronized pointcut syncJoinPoints():call (@Synchronizes * *(..));
What will happen if the pointcut is synchronized, what does it mean to have synchronized pointcut. Does the thread that intercepts the pointcut is newly created by AspectJ plugin or it uses the thread that is entering the intercepted method?
Thank you for your help.