Feb 7th, 2013, 03:09 PM
Is it possible to enable/disable the Spring AOP around advice call dynamically ?
I have written a Spring AOP around advice method call to calculate the method call time. Is is possible to enable or disable those call dynamically without changing any spring configuration.
I don't want to use this around Advice all the time in production, whenever required then only i would like to use it. So that in production server without restarting the server i can enable or disable the aroundAdvice Spring AOP call for a particular method.
Feb 7th, 2013, 03:34 PM
I don't think so.
You could probably put something in your advice to check periodically for a value in a table or if a file exists in a directory or something like that to turn on/off the calculating the time.
That's not the most elaborate solution - others may have better.
Tags for this Thread