In a Spring project I am trying to get injection to work in OVal (a SourceForge library) custom validators (CheckWith implementations). The OVal injector contains roughtly:
public class SpringInjector {
@Autowired
private AutowiredAnnotationBeanPostProcessor processor;
}
and according to the OVal documentation is supposed to be declared this way: <bean class="net.sf.oval.integration.spring.SpringInjector" />
.
The problem is that there are already 3 candidates for injection. Is there a way to override the @Autowire
in the XML config given that the processor
variable has no accessor methods? Or any other way to get injection to work in OVal custom validators?