title: Spring, beans and enum's valueOf
body: <p>When calling Spring's "Validate" from Eclipse, I get a lot of errors when I want to get back an enum using Enum's implicit <em>"valueOf"</em> method.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;bean id="docFamily" class="...DocFamily" factory-method="valueOf"&gt;
      &lt;constructor-arg&gt;
        &lt;value&gt;LOGY&lt;/value&gt;
      &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>has Eclipse telling me:</p>
  
  <blockquote>
    <p>Non-static factory method 'valueOf'
    with 1 arguments not found in factory
    bean class ...</p>
  </blockquote>
  
  <p>However as I understand it from the documentation:</p>
  
  <blockquote>
    <p>BeanWrapperImpl supports JDK 1.5 enums
    and old-style enum classes: String
    values will be treated as enum value
    names</p>
  </blockquote>
  
  <p>So the above should work right? (btw is 'constructor-arg' the correct tag in that case, shouldn't it be some 'method-arg'?).</p>
  
  <p>Why is Eclipse/Spring's "Validate" giving me that error message?</p>