Results 1 to 2 of 2

Thread: enabling/disabling aspects at Run-time

  1. #1

    Default enabling/disabling aspects at Run-time

    Is there a way to enable disable aspects/proxying at run-time ?

    Below are my bean definitions.
    Code:
    <bean id="performanceAdvice" 
    class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor"/>
    
    
    <aop:config>
    	
         <aop:pointcut id="executePointCut" expression="execution(* IDao.execute*(..))" />
        <aop:advisor id="PerfAdvisorForExecutepointcut" 
    pointcut-ref="executePointCut"  	     
    advice-ref="performanceAdvice"/>
    	              
    	
    </aop:config>
    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 ?

  2. #2
    Join Date
    Mar 2007
    Posts
    515

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •