Hey All; Here is a little information about using reflection in case anyone is interested.
http://java.sun.com/developer/technicalArticles/ALT/Reflection/index.html http://java.sun.com/developer/technicalArticles/JavaLP/Interposing/#code1 I was working through some apps from Herb Schildt's Java Programming Cookbook and could not get Class.forName("MyClassHere") to find my class. This works for the fully qualified java classes such as "java.lang.String"..... My solution was to create new instances of MyClassHere like this: try { MyClassHere mch = new MyClassHere(); Class c = mch.getClass(); ........... } catch................. This is also the case for many of the examples on the two sites that I provided. What's my point? Reflection can be a powerful tool if you are careful with it and don't over use it. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
