[aspectwerkz-user] object deserialization pointcut (was pointcut on inherited method)
Michael Stover <[email protected]> Mon, 13 Feb 2006 16:51:21 -0500
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Organization | Apache Software Foundation |
| Message-ID | <1139867481.5071.10.camel@da_vinci> |
This reminds me of a question: In AspectJ, how would you design a pointcut to intercept the deserialization of objects? My solution was to intercept the call to readObject(ObjectInputStream), but that requires that the class in question override the method, even though it adds no custom logic. Is there another way? On Mon, 2006-02-13 at 13:32 -0800, [email protected] wrote: > Could I specify the inherited method without specifying the parent class in > a pointcut? > For example, I have Class B extended from Class A and inherited method C. > The pointcut "execution(* B.C(..)) doesn't work, but the pointcut > "execution(* A.C(..)) works OK. > > Regards, > Man