title: Getting localized message from resourceBundle via annotations in Spring Framework
body: <p>Is it possible to do this ? Currently it is done like this :</p>
  
  <pre><code>&lt;bean id="resource" class="org.springframework.context.support.ResourceBundleMessageSource"&gt;
      &lt;property name="basenames"&gt;
          &lt;list&gt;
              &lt;value&gt;content.Language&lt;/value&gt; 
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  @Autowired
  protected MessageSource resource;
  
  protected String getMessage(String code, Object[] object, Locale locale) {
      return resource.getMessage(code, object, locale);
  }
  </code></pre>
  
  <p>Is there a way for it to be like getting properties via @Value annotation ?</p>
  
  <pre><code>&lt;util:properties id="generals" location="classpath:portlet.properties" /&gt;
  
      @Value("#{generals['supported.lang.codes']}")
      public String langCodes;
  </code></pre>
  
  <p>Because having to call the method is usually fine, but for instance when unit testing, this is pain in ... ... Well in some cases, webdriver's PageObject pattern where objects don't have no initialization, this would be really helpful</p>