In my application I am using ContextLoaderListener to load context files from many jars using:
contextConfigLocat
Given that the bean references in your XML config are defined via expression language (EL) you can do the following:
which makes use of the BeanExpressionContext.getObject() method. See here for more details.
BeanExpressionContext.getObject()