I have 3 component (A,B,C) providing services (As,As,Cs) (A and B implement the same (As) service). and 1 component (E) requiring service.
The component class of E, i declared:
@Component
@.....
class E {
@requires
As dep1,
}
I have a controller to set a filter of "dep1". It controls "dep1" choosing the (As) service of components, A or B.
All components work fine. and i can control As service between A and B component.
Now, I modify the class E following:
@Component
@.....
class E {
@requires
As dep1;
@requires
Cs dep2;
}
In this case, i can also control the filter from a controller but :
"dep1" uses always service of component "A", in spite of the filter of "dep1" sets to "B"
How to resolve this case, please? Thanks in advance.