title: Evaluating properties inside Spring Expression Lang (SpEL)
body: <p>Our service has a process that is scheduled according to a properties file, reading the property <strong>refreshIntervalMillis</strong>. Its value is injected directly in a Quartz trigger with this configuration:</p>
  
  <pre><code>&lt;bean name="trigger"
      class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean "
      p:repeatInterval="${refreshIntervalMillis}"&gt; 
  ...
  &lt;/bean&gt;
  </code></pre>
  
  <p>However, the admins that install this service think in terms of hours/days, so in order to make thing easier for them, we changed this to:</p>
  
  <ol>
  <li>Renamed <strong>refreshIntervalMillis</strong> to <strong>refreshIntervalMinutes</strong></li>
  <li>Changed to code above to the following:</li>
  </ol>
  
  <pre>
  p:repeatInterval="#{ 1000 * 60 * T(java.lang.Integer).valueOf(@configurationProperties['garbageLevelWatcher.refreshIntervalMinutes'])}"
  </pre>
  
  <p>Note: the properties object is exposed as a bean named "configurationProperties"</p>
  
  <p>Is there a simpler syntax to accomplish the same?</p>
  
  <p>Thanks,</p>