title: Modify pointcut expressions at runtime using Spring AOP
body: <p>At the moment I'm working on an application that should be integrated in any Spring based web application to enable the user to define dynamic pointcuts by changing the value of the @Pointcut annotation at runtime. My primary goal is to switch the method a certain aspect is woven around while the appliaction is still running.</p>
  
  <p>So far, I got it working to start a Spring application context defining an aspect class from a main method and change the annotation value via Reflection. However, it seemed to me that this change didn't affect the proxy object created by Spring. The aspect was still woven and called according to the original @Pointcut value before my changes were applied.
  The idea to try this came up to me because according to "Spring in Action" and the Spring documentation these proxy objects are created at runtime.  So I concluded that there must be a way to provide runtime changes. </p>
  
  <p>Does anyone know if there's another way apart from my approach to get that working using <strong>Spring AOP</strong>? I'm looking forward to your ideas and opinions!</p>
  
  <p>EDIT: It's important for my solution to leave existing code untouched if that's possible. So adding or replacing methods in beans is not an option for me.</p>