public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { if (bean instanceof ListFactoryBean && ChildApplicationContextFactory.this.compositePropertyTypes.containsKey(beanName)) { Map<String, CompositeDataBean> beans = ChildApplicationContext.this.compositeProperties .get(beanName); List<Object> beanList; if (beans != null) { beanList = new ArrayList<Object>(beans.size()); for (CompositeDataBean wrapped : beans.values()) { beanList.add(wrapped.getBean()); } } else { beanList = Collections.emptyList(); } ((ListFactoryBean) bean).setSourceList(beanList); } return bean; } });
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { if (bean instanceof ListFactoryBean && ChildApplicationContextFactory.this.compositePropertyTypes.containsKey(beanName)) { Map<String, CompositeDataBean> beans = ChildApplicationContext.this.compositeProperties .get(beanName); List<Object> beanList; if (beans != null) { beanList = new ArrayList<Object>(beans.size()); for (CompositeDataBean wrapped : beans.values()) { beanList.add(wrapped.getBean()); } } else { beanList = Collections.emptyList(); } ((ListFactoryBean) bean).setSourceList(beanList); } return bean; } });