Mar 9th, 2010, 05:03 PM
So now everything seems to be clear.
I still wondering which solution would be better.
I would like to avoid using my own mappers/resolvers since this kind of runtime dispatching can be easily done by Spring. In my solution Spring would dependency inject user type specific implementations directly.
This way your code would be dependent only on manager interfaces not on mappers/resolvers. With resolvers/mappers I just do not feel that introducing this kind of indirections would provide any benefits.
I am planning to employ my mechanism to inject user type specific implementations on distributed layer but it should not be the problem.