Skip to main content

Skip over site navigation to main content

developerWorks  >   Java technology  >   Technical library  >  

Technical library view  RSS for Java technology

developerWorks
 Related links:    Redbooks  |  Forums  |  Standards

Filter your search and/or enter a keyword. If you don't filter your search or enter a keyword, the search results will default to all results.

 
 
 
  1 - 9 of 9 results    Hide Summaries
Title   Type   Date  

Table that contains the results that meet the search criteria.

Java programming dynamics, Part 4: Class transformation with Javassist
Java consultant Dennis Sosnoski takes a look at Javassist, the bytecode manipulation library that's the basis for the aspect-oriented programming features being added to the widely used JBoss application server. You'll find out the basics of transforming existing classes with Javassist and see both the power and the limitations of this framework's source code approach to classworking.
Articles 16 Sep 2003  
 
Java programming dynamics, Part 8: Replacing reflection with code generation
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.
Articles 10 Jun 2004  
 
Java programming dynamics, Part 7: Bytecode engineering with BCEL
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.
Articles 14 Apr 2004  
 
Java programming dynamics, Part 6: Aspect-oriented changes with Javassist
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.
Articles 02 Mar 2004  
 
Java programming dynamics, Part 3: Applied reflection
Learn how the Java Reflection API can be used to simplify the job of command line argument processing. In this article, Java consultant Dennis Sosnoski outlines an open source library that makes command line arguments practically handle themselves.
Articles 15 Jul 2003  
 
Java programming dynamics, Part 2: Introducing reflection
In Part 2 of his series on Java platform internals, Dennis Sosnoski provides an introduction to using reflection, as well as a look at some of the costs involved. You'll also find out how the Java Reflection API lets you hook into objects at run time.
Articles 03 Jun 2003  
 
Java programming dynamics, Part 1: Java classes and class loading
Take a look at what goes on behind the scenes of executing your Java application in this new series on the dynamic aspects of Java programming. Enterprise Java expert Dennis Sosnoski gives the scoop on the Java binary class format and what happens to classes inside the JVM.
Articles 29 Apr 2003  
 
Java programming dynamics, Part 5: Transforming classes on-the-fly
After a short hiatus, Dennis Sosnoski is back with Part 5 of his Java programming dynamics series. Prveiously, 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.
Articles 03 Feb 2004  
 
Classworking toolkit: ASM classworking
In this edition of Classworking toolkit, consultant Dennis Sosnoski compares the ASM bytecode manipulation framework to the Byte Code Engineering Library (BCEL) and Javassist frameworks he previously discussed in his Java programming dynamics series. ASM claims to be small and fast -- but how does it match up with the other frameworks? Dennis uses an example from his earlier series to evaluate both usability and performance.
Articles 12 May 2005  
 
  1 - 9 of 9 results    Hide Summaries
Not finding what you're looking for? Suggest Content