Hello,

I would like to enable or disable the execution based on a boolean.

Is there a way to disable the execution of an advise based on a boolean flag?

Something like this -

@Around("enabled && methodPointcuts()") where enabled is a boolean flag?

Or atleast way to disable the weaving based on some flag passed from application context?

Thanks & Regards
Surya