|
|
enabling/disabling aspects at Run-time
Is there a way to enable disable aspects/proxying at run-time ?
Below are my bean definitions.
Code:
lt;bean id=quot;performanceAdvicequot;
class=quot;org..aop.interceptor.PerformanceMonitorInterceptorquot;/gt;lt;aop:configgt;
lt;aop:pointcut id=quot;executePointCutquot; expression=quot;execution(* IDao.execute*(..))quot; /gt; lt;aop:advisor id=quot erfAdvisorForExecutepointcutquot;
pointcut-ref=quot;executePointCutquot;
advice-ref=quot;performanceAdvicequot;/gt;
lt;/aop:configgt;
Basically, I am applying spring's PerformanceMonitorInterceptor as my advisor
for all objects that impl my interface IDao and for the methods that match the
pattern execute*
The aop configs work fine and I am able to get the performance metrics
from PerformanceMonitorInterceptor ..
But how would I enable/disable this proxying at run-time ?
showthread.php?t=41806 |
|