Hi
I have a ServiceListFactoryBean which creates a list of service implementations:
I can access the services using the applicationContext without a problem:Code:<bean id="services" class="org.springframework.beans...ServiceListFactoryBean" p:serviceType="ServiceInterface"/>
I can also use trad constructor-arg injection successfully:Code:final List services = ctx.getBean("services", List.class));
But if I try to autowire the dependencyCode:<bean id="aClass" class="AClass"> <constructor-arg ref="services"/> </bean>
Then I get a BeanCreationException caused byCode:@Autowired @Qualifier("services") private List services;
I am using Spring 3.0.Code:FatalBeanException: No element type declared for collection [java.util.List]


Reply With Quote
