Spring: How do I inject ENUM in Spring configuration with generics?
All you really have to do is to add a value
tag inside the constructor-arg
tag.
<bean id="checkSetFilter" class="com.iba.icomp.core.checks.CheckSetFilter"> <constructor-arg ref="checkSetManager"/> <constructor-arg> <value type="your.package.StubCheckId">STUBCHECK1</value> </constructor-arg></bean>