title: Spring - I18n - Access MessageSource over static class?
body: <p>I followed some tutorials like this one:</p>
  
  <p><a href="http://www.concretepage.com/spring-4/spring-4-mvc-internationalization-i18n-and-localization-l10n-annotation-example" rel="noreferrer">http://www.concretepage.com/spring-4/spring-4-mvc-internationalization-i18n-and-localization-l10n-annotation-example</a></p>
  
  <p>to get i18n work in my spring(boot) project.
  It's working so far, but I don't like it to always autowire the <code>MessageSource</code> bean to my current class, just to get some <code>String</code>s translated.</p>
  
  <p>My idea is a easy wrapper class with a static call like</p>
  
  <pre><code>I18n.translate("some.identifier") 
  </code></pre>
  
  <p>or </p>
  
  <pre><code>I18n.translate("some.identifier",param,param,param...).
  </code></pre>
  
  <p>But I can't inject the <code>MessageSource</code> into a class which is not handled by Spring, huh?</p>
  
  <p>Any idea how to solve this?</p>