RE: Dynamic configuration
Vincent Tencé <[email protected]> Fri, 9 May 2003 15:36:19 -0400
| Newsgroups | gmane.comp.java.aspectwerkz |
|---|---|
| Message-ID | <000101c31662$447a07c0$7e0c640a@vtencew2k> |
> Hi Vincent. > > At the moment you can't add new pointcuts. This since it requires the > class to be re-weaved (meaning reloaded as well). I have support for > that coming but it is not at all stable yet. In the future > you will be > able to change the definition file at runtime and when you > reload your > class it will get weaved with the new definition, e.g. the > new pointcuts. Good news. What could be useful also is being able to specify new pointcuts via an API rather than the configuration file. > So the solution for today is to be very generous when defining the > pointcuts. I.e. if you define an aspect like: > > <aspect pattern="myclasses.."> > <pointcut type="method" pattern"* *(..)"/> > </aspect> > > Now it will weave all methods in all classes under the myclasses > package. And you will be able to add and remove advices as > much as you > want. OK. That seems all good for now since it's little overhead. I should be able to dynamically generate that config file then load the aspectwerkz classes, right? Thanks, -- Vincent ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com