title: Assign value to variable based on its annotation
body: <p>In my current spring project, I am looking for a way to assign some value for the attributes of some of the my POJO classes.</p>
  
  <p>This feature is similar to the use of the annotations <code>PathVariable</code> and <code>ModelAttribute</code> for some parameters in the methods of a controller: when a parameter is annotated with one of this annotations, the own system read the value for this parameter and assign to the variable, without need use <code>&lt;variable&gt; = &lt;value&gt;</code>.</p>
  
  <p>In my project, I have some POJO class like this:</p>
  
  <pre><code>class Class {
  
      private &lt;type&gt; &lt;attribute&gt;
  
      public &lt;type&gt; get&lt;attribute&gt;() {
          return &lt;attribute&gt;;
      }
  
      public void set&lt;attribute&gt;(&lt;type&gt; &lt;parameter&gt;) {
          &lt;attribute&gt; = &lt;parameter&gt;;
      }
  
  }
  </code></pre>
  
  <p>if add an annotation to the attribute (for instance: @Setting), when I create a new instance of this class, the system should read a value in a file and assign to the variable.</p>
  
  <p>Anyone can tell me how to do this?</p>