I am trying to put Spring and SpringMVC into our really legacy project. The problem is that our project is really large and contains huge amount of proprietary request handling. I have to introduce it incrementally because the old handlers have to work with old infrastructure. Because of that I have to use the original servlet. There was no problem to change it to DispatcherServlet, the only problem that I have to solve is the fact, that I need to distinguish between class that is Controller and class, which has to be handled in old way.
I need to obtain class that the DispatcherServlet will dispatch this request to. Is it possible to somehow query SpringMVC to get bean which will serve as controller?
Thanks