So, I have something like this in one of my java files:
@Resource(name = "initializationCache")
Boolean initializationCache;
In a config file, I have this:
<bean id="initializationCache" class="java.lang.Boolean">
<constructor-arg value="${initialization.cache}" />
</bean>
How would I go about making this work using a primitive boolean?
I guess one way to go would be to declare a setter of
Booleantype and let it assign the value to a field ofbooleantype, i.e.I haven’t tested it though.