It's not a secret anymore!
The moose likes Beginning Java and the fly likes Java Reflection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Reflection " Watch "Java Reflection " New topic

Java Reflection

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Could someone recomend a good Book or a link to a good site in regards to the JAVA Reflection API? I have gone through the tutorial on Sun's site, which is good, but is only a good start.
BTW - I have searched Google, and haven't found something I like as of yet, so I don't need a "Do a search on Google" recomendation.
Also, my Reflection pratices will be focused on GUI Building tools. So any leads towards that specifically would be great.

GenRocket - Experts at Building Test Data
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
You might find Tutorials 260-262 and 270 of Dick Baldwin's Advanced Java Tutorials to be informative.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Greg Ostravich
Ranch Hand

Joined: Jul 11, 2002
Posts: 112
I would also suggest looking at the source code for the PrivilegedAccessor and PrivilegedAccessor Test from the JUnit FAQ.
JUnit is a tool to help you write unit tests and I used the Privileged Accessor to write tests for Private classes I wouldn't normally have access to. They even show you how to return values from
those function calls.
Here's the link to the page:
JUnit Private Accessor

Greg Ostravich - SCPJ2
I agree. Here's the link:
subject: Java Reflection
jQuery in Action, 3rd edition