Reflection made Easy!

I have not done any work prior to using reflection in my Java projects.  A project I was working on I needed to be able to access the Getter/Setter of an object.  I honestly never dreamed it was this easy.  Four simple methods that make it extremely easy to access the fields of any class.  Now you do have to know the name of the field you wish to set, but there are so many ways to code and plan for this to make it easy.

 

Simple inline methods for all of it. I have had a number of instances I could have done things much simpler than I had in the past.  Unfortunately, I never took the time to really look at reflection. Yes shame on me.  However, I won’t make that mistake anymore.  I hope you find this useful.

bob

  • Ghostprogrammer
  • I am known for being able to quickly decipher difficult problems to assist development teams in producing a solution. I have been called upon to be the Team Lead for multiple large-scale projects. I have a keen interest in learning new technologies, always ready for a new challenge.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: