I have a class annotated with @Tool
. I'd love to run some kind of initializing aspect over it as soon as it is created. I have not found any documentation on how to wire to this particular event.
I thought about annotating the class constructor but that is kinda explicit. I'd love to have some more magic and therefore have a pointcut implicitly like wiring up to the default CTOR usage or something.
Please provide me with some documentation/tutorial since I just cannot find any because I lack on the proper keywords to search for it.
As explained in this similar question, you have to use actual aspectj instead of just spring-aop to intercept constructor calls.