title: dependency injection of 3rd party singleton class with Spring
body: <p>I'm using apache commons validator in few classes in my project, and I want to inject the singleton to my Class.</p>
  
  <p>to use the validator you need to get the instance of the singleton like this:</p>
  
  <pre><code>  // Get an EmailValidator
    EmailValidator validator = EmailValidator.getInstance();
  </code></pre>
  
  <p>My question is how exactly could I inject the EmailValidator class to my project with annotations. I didn't find any reference about these sort of things...</p>