| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles |
- Introducing the Byte Code Engineering Library for Java by Daniel Rubio - [Clicks: 118]
Java, being a cross-platform language, achieves its interoperability through an abstraction layer in the way of a binary format named byte code. While the actual process of building the intermediate layer is the work of a compiler, and the execution itself is done by the Java Virtual Machine through .class files, there is often a need to inspect and even modify the compiled byte code for purposes of optimization or run-time analysis. The Byte Code Engineering Library (BCEL) provides a comprehensive API for these tasks.
http://tools.devchannel.org/devtoolschannel/04/07/08/1935232.shtml?tid=25&tid=46 - Jul, 2004 - 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 7: Bytecode engineering with BCEL by Dennis M. Sosnoski - [Clicks: 98]
The Apache Byte Code Engineering Library (BCEL) lets you dig into the bytecode of Java classes. You can use it to transform existing class representations or construct new ones, and because BCEL works at the level of individual JVM instructions, it gives you the utmost power over your code. That power comes with a cost in complexity, though. In this article, Java consultant Dennis Sosnoski gives you the BCEL basics and guides you through an example BCEL application so you can decide for yourself if the power justifies the complexity.
[Includes sample code]
http://www-106.ibm.com/developerworks/java/library/j-dyn0414/ - Apr, 2004