RE: Dynamic configuration
Vincent Tencé <[email protected]> Tue, 6 May 2003 10:21:40 -0400
| Newsgroups | gmane.comp.java.aspectwerkz |
|---|---|
| Message-ID | <002b01c313db$41cf0e00$7e0c640a@vtencew2k> |
Jonas Bonér wrote: > The advices can be dynamically be added, rearranged and removed at > runtime without reloading your classes. (See the docs: > [http://aspectwerkz.sourceforge.net/documentation.html#Hot%20d > eployment].) > > The limitation is that you can only do this at pointcuts that has > already been advised. I.e. you have to know the places where > you want to > be able to handle the advices dynamically. (Either you know > these points > or you have to be *very* generous when defining your pointcuts.) > > If you reload your classes at runtime then you should as well > be able to > change the pointcuts, e.g. transform your classes according to a > modified XML defininition. This since the framework reloads the > definition file as soon as it has been updated (or the > attributes if you > are using runtime attributes). This feature I have not had > the time to > test thoroughly. Thanks for the pointer. I guess I can get around this in a first phase by generating the config file on the fly then loading/reloading the framework. > I don't know if this is sufficient for you. At some point, I will look into adding the ability to specify aspects using the API. Any thoughts/issues on/with that? 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