Ok. It seems I found a solution: I added the bean "appController" and now this bean has a reference to "fileDataReader" or "dbDataReader". So the "liniaWidok", "przystanekWidok" and "polaczenieWidok" beans will have a reference to "appController" instead of "fileDataReader" or "dbDataReader". And when I need to change the dataReader I simply change it only in one place - the "appController".
Here are the files including this solution:
controllerContext.xml:
widokiContext.xml:
context.xml stays the same:
This problem look quite silly now when I managed to solve it
But if anyone has a different idea please, let me know.
Cheers.