you can get applicationContext object using
ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(
new
String[] {"applicationContext.xml", "applicationContext-part2.xml"});
// of course, an ApplicationContext is just a BeanFactory
BeanFactory factory = (BeanFactory) appContext;
you can keep this in your utility class and use it. But if you change any thing you need to clear this then only you can get the latest bean definitions.