When using org.springframework.web.servlet.DispatcherServlet I am looking for a way to tell it that there is already a bean factory running that it should be aware of. DispatcherServlet should load its own config like it does today, but this web bean factory should also be able to refrence beans that are in the master (like a nestable bean factory would?) Is this an option?
I need this because one small piece of my app is the web mvc items, at the point it gets loader there is already a beanFactory that all the master obejct (like DOA or Factories) are loaded in, but it does make 100% sence to keep the web specific stuff (like the mappings) in a special factory.
I would assume I could extend DispatcherServlet and make something find a bean factory somewhere in the JVM using classloader and reflection, but seems like it would be a hack for something I am sure is a common issue.