"Intercepting Interfaces" with AspectWerkz: is it possible ?
"Maurizio Albari" <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.user,gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
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 ?