I have a class called let's say A with such a setter:
//class A
@Inject
public void setAProvider(Provider<B> b)
{
this.b = b;
}
It works fine with javax.inject and annotation configuration when I want to have only one kind of A instance..
My problem is that I want to have two instances of class A, one with Provider<B1>
and second with Provider<B2>
. My question is how to express my requirements in Spring xml configuration?