The problem Let’s assume that we have three components: A, B and C. Another component, Main, has a dependency to A and wants to call a method foo that belongs to component C: a.getB().getC().foo(); The previous snippet is equivalent to: B b = a.getB();
C c = b.getC();
c.foo(); The problem…