You now getOrCreateMethod() to create an empty placeholder (that calls the super implementation, if there is one). You then use the TransformMethod to addAdvice() to get it to do what you want. It seems more complicated, but it has the advantage of being in purely Java code ... no Javassist psuedo-code is involved at all, and you can also add multiple bits of advice. It's really about weaving a Tapestry of method invocations together :-)
On Wed, May 26, 2010 at 9:22 AM, Jim O'Callaghan <[email protected]> wrote: > Can anyone point to an online example (or post a brief example) of migrating > from the 5.1.0.5 ClassTransformation API to the 5.2.0 one? I'm specifically > talking about ClassTransformation.addMethod(TransformMethodSignature,String) > - thanks. > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
