This post originated from an RSS feed registered with Java Buzz
by Franco Martinig.
Original Post: Reflection in Java
Feed Title: Java Software Development Videos and Tutorials Directory
Feed URL: http://www.java-tv.com/feed/
Feed Description: Java-TV.com is a directory of videos, interviews and tutorials focused on software development activities with the Java programming language.
In this presentation, we will look at some advanced uses of reflection to delegate method calls automatically, to determine where we are being called from and to create new enum values dynamically for unit test purposes, including modifying the switch statements on-the-fly. We will look at how we can use the stack information to determine the class type in a static context.
We will demonstrate how Externalizable allows the private state of an object to be read and then modified. Lastly we will demonstrate how we can construct new objects without ...