preprocess configuration values in Spring
<p>In a Spring bean, I need to process a configuration property before using is, e.g.:</p>

<pre><code>@Component
class UsersController {

  @Value("${roles}")
  private String rolesAsString;

  private List&lt;String&gt; roles;

  @PostConstruct
  public void initRoles() { 
    // just an example, not necessarily string splitting
    roles = rolesAsString.split(",");
  }
</code></pre>

<p>This works, but I am left with an unneeded member variable 'rolesString'. What would be a clean concise way to only keep the processed value?</p>