• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Reflection

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might find Tutorials 260-262 and 270 of Dick Baldwin's Advanced Java Tutorials to be informative.
 
Greg Ostravich
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic