I have an aspect that bears some performance penalty. Therefore I would like to let the deployer of the app decide whether to use it or not. A placeholder can obviously be defined, but where should it be placed?
I use @Aspect @Component and scan for components (I can configure them manually if it would help).
My AOP configuration is simply
Any idea how to do that?Code:<aop:aspectj-autoproxy proxy-target-class="true" />