Re: Dynamic configuration
Jonas Bonér <[email protected]> Tue, 06 May 2003 07:15:53 +0200
| Newsgroups | gmane.comp.java.aspectwerkz |
|---|---|
| Message-ID | <[email protected]> |
Hi Vincent. Thanks. 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%20deployment].) 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. I don't know if this is sufficient for you. Sincerely, Jonas. Vincent Tencé wrote: > Hi Jonas, > > I've recently discovered AspectWerkz and first of all kudos to you :-) > > That's almost exactly what I was looking for. I'm not very familiar with the > framework yet, and I would like to know if there is a way to configure > aspects via the API rather than the configuration file. I need to be able to > configure aspects at runtime and I don't know what the aspects will be. > Looking at the code I didn't see any easy way to achieve this. It looked to > me as if we were tied to the configuration file. Again, that's fairly new to > me so I may be mistaken. What do you recommend I should do? > > Thanks, > -- Vincent > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > aspectwerkz-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aspectwerkz-developer > > -- Jonas http://freeroller.net/page/jboner ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf