For a bean which is instantiated via the context.getBean() method, how can it reference back to its parent context? I want to use the context to create additional beans, from within a bean which was created as above. I know I can do it by referring to another ApplicationContext.xml, but I'd like to define all of the beans once, in a single xml file.


Reply With Quote