Monday, August 25, 2008

Java Source Reflection with JaxMe JavaSource

Alright, it may not happen very often that you need to be able to use reflection on your Java source code, but its nice to know there is a framework that can help you out. Apache's JaxMe JavaSource framework is a framework that can be used for generating Java source files.

I personally found myself working on a project that had to be capable of integrating our source code with another vendor's source code, both of which changed frequently. I was able to use the JaxMe JavaSource framework to verify that all necessary methods had been implemented on our subclasses, and if they hadn't, I was able to stub them out quickly and easily so that it didn't break the build everytime a base class was modified.

For more information on how to use the JaxMe JavaSource framework and in particular the source code reflection portion of the framework, go here.

0 comments:

© 2010 Confessions of a Java Programmer, All Rights Reserved