List of usage examples for org.springframework.beans.factory.support StaticListableBeanFactory StaticListableBeanFactory
public StaticListableBeanFactory()
From source file:gov.nih.nci.cabig.ctms.web.tabs.StaticTabConfigurer.java
@SuppressWarnings("unchecked") public StaticTabConfigurer(Object... beans) { staticFactory = new StaticListableBeanFactory(); ModelMap modelMap = new ModelMap(); modelMap.addAllObjects(Arrays.asList(beans)); for (Object o : modelMap.entrySet()) { Map.Entry<String, Object> entry = (Map.Entry<String, Object>) o; staticFactory.addBean(entry.getKey(), entry.getValue()); }//from w w w. j av a2 s . c o m }