How to disable AspectJ without restarting the program?

I have an application using AspectJ with time loading to advise various methods. I would like to put a switch in my program to disable this aspect without having to make any changes to the source code or restart the program. It should incur as little overhead as possible when shutting down. Thank!

+3
source share
1 answer

As far as I know, there is no way to un drag some tips from bytecode. If you are working with the existing part of the extended bytecode, I do not believe that there is a way to delete it, except restarting the application without interlacing *.

, - , , , , if (useWeavedCode) , , , ( JMX, , JSP ..). , , .

, , , , .

* , , , , , , .

+4

Source: https://habr.com/ru/post/1754706/


All Articles