title: Invoking all setters within a class using reflection
body: <p>I have a domain object, that for the purposes of this question I will call Person with the following private variables:</p>
  
  <pre><code>String name
  int age
  </code></pre>
  
  <p>Each of these have getters and setters. Now I also have a <code>Map&lt;String, String&gt;</code> with the following entries:</p>
  
  <pre><code>name, phil
  age, 35
  </code></pre>
  
  <p>I would like to populate a list of all setter methods within the class Person and then looping through this list and invoking each method using the values from the map.</p>
  
  <p>Is this even possible as I cannot see any examples close to this on the net. Examples are very much appreciated.</p>