@Autowired for lists (what is the order of list)
Hi,
I like the @Autowired approach for list items
Code:
@Component
class Foo{
@Autowired List<MyObject> items;
}
@Component
class A implements MyObject{}
@Component
class B MyObject{}
I wonder what's the order of the injected items? Does it relate to the order of .jar loadings (i.e. classpath order)? Or maybe the order of the context definition loading resolves to the final order?
Looking at http://jira.springframework.org/browse/SPR-5574 an expliticly user-defined order is not supported.
thanks