title: Converting Boolean bean creation to boolean using Spring
body: <p>So, I have something like this in one of my java files:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Resource(name = "initializationCache")
  Boolean initializationCache;
  </code></pre>
  
  <p>In a config file, I have this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;bean id="initializationCache" class="java.lang.Boolean"&gt;
      &lt;constructor-arg value="${initialization.cache}" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>How would I go about making this work using a primitive boolean? </p>