| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles |
- Java programming dynamics, Part 8: Replacing reflection with code generation by Dennis M. Sosnoski - [Clicks: 82]
Earlier in this article series, you learned how reflection performance is many times slower than direct access, and then learned about classworking with Javassist and the Apache Byte Code Engineering Library (BCEL). Java consultant Dennis Sosnoski wraps up his Java programming dynamics series by demonstrating how you can use runtime classworking to replace reflection code with generated code that runs at full speed ahead.
[Includes sample code]
http://www-106.ibm.com/developerworks/java/library/j-dyn0610/ - Jun, 2004 - Java programming dynamics, Part 6: Aspect-oriented changes with Javassist by Dennis M. Sosnoski - [Clicks: 20]
Java consultant Dennis Sosnoski saves the best for last in his three-part coverage of the Javassist framework. This time he shows how the Javassist search-and-replace support makes editing Java bytecode practically as easy as a text editor's Replace All command. Want to report all writes to a particular field or patch in a change to a parameter passed in a method call? Javassist makes it easy, and Dennis shows you how.
[Includes example code]
http://www-106.ibm.com/developerworks/java/library/j-dyn0302.html - Mar, 2004 - Java programming dynamics, Part 5: Transforming classes on-the-fly by Dennis M. Sosnoski - [Clicks: 32]
After a short hiatus, Dennis Sosnoski is back with Part 5 of his Java programming dynamics series. You've seen how to write a program that transforms Java class files to change code behavior. In this installment, Dennis shows you how to combine transformation with the actual loading of classes using the Javassist framework, for flexible "just-in-time" aspect-oriented feature handling. This approach lets you decide what you want to change at runtime, and potentially make different modifications each time you run a program. Along the way you'll also get a deeper look at the general issues of classloading into the JVM.
[Includes source code]
http://www-106.ibm.com/developerworks/library/j-dyn0203.html - Feb, 2004 - Javassist: Java Bytecode Engineering Made Simple by Shigeru Chiba - [Clicks: 20]
Javassist is a powerful new library in the field of bytecode engineering. It allows developers to add a new method to a compiled class, modify a method body, and so forth. Unlike other similar libraries, Javassist enables this without knowledge of Java bytecode or the structure of a class file.
[Includes source code]
http://www.sys-con.com/story/?storyid=38672&DE=1 - Jan, 2004