Re: [aspectwerkz-devel] "Intercepting Interfaces" with AspectWerkz: is it possible ?
Jonas "Bon?r" <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.user,gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi. We support so called subtype patterns. Picking out all classes that either implements a certain interface or extends a certain class. Using the '+' operator. See the docs for details (scroll down to 'subtype patters': http://aspectwerkz.codehaus.org/definition_issues.html#Join%20point%20selection%20pattern%20language /Jonas --- Maurizio Albari <[email protected]> wrote: > Is it possible to intercept calls that have as a target a specific interface i.e. all classes > that implement such that interface ? > > Let's assume for example that I need to intercept all calls to HttpSession, let's say methods > setAttribute and removeAttribute. Each application server have its own implementation of > HttpSession (with is an Interface). > > I can discover the implementation only at runtime, witch is too late for my needs, and also > force my aspectwerkz.xml configuration to be application server specific. > > Any idea ? > ===== Jonas http://blogs.codehaus.org/people/jboner/ __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus