| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles |
- Add Logging at Class Load Time with Java Instrumentation by Thorbjorn Ravn Andersen - [Clicks: 7]
Java Instrumentation, introduced in Java SE 5, offers an interesting ability to manipulate class bytecode as its loaded by the classloader. In this article, Thorbjorn Ravn Andersen offers a simple example of this feature by adding logging statements to the beginning and end of all methods of an arbitrary class.
[Includes sample code]
http://today.java.net/pub/a/today/2008/04/24/add-logging-at-class-load-time-with-instrumentation.html - Apr, 2008 - Good Java Style, Revisited by Rob Lybarger - [Clicks: 23]
Learn the elements of good Java code style and why they are important.
http://www.developer.com/java/ent/article.php/3741026 - Apr, 2008 - Reflection in Action by Albert Attard - [Clicks: 13]
Perhaps you've heard of reflection, seen it in books, but you're not sure what it can do for you, In this introductory article, Albert Attard introduces the basic techniques of discovering and using a class's methods and fields at runtime, and discusses cases where this can be a powerful technique.
[Includes sample code]
http://today.java.net/pub/a/today/2008/02/12/reflection-in-action.html - Feb, 2008