List of usage examples for org.springframework.beans.factory.config ConstructorArgumentValues addArgumentValues
public void addArgumentValues(@Nullable ConstructorArgumentValues other)
From source file:com.apporiented.spring.override.BeanOverrideProcessor.java
private void overwriteBeanDefinition(BeanDefinition target, BeanDefinition source) { log.debug("Replacing bean [" + ref + "] with a [" + source.getBeanClassName() + "]"); target.setBeanClassName(source.getBeanClassName()); ConstructorArgumentValues cas = target.getConstructorArgumentValues(); cas.clear();/*from w w w . j a va 2s . c o m*/ cas.addArgumentValues(source.getConstructorArgumentValues()); MutablePropertyValues pvs = target.getPropertyValues(); if (!merge) { pvs.getPropertyValueList().clear(); } pvs.addPropertyValues(source.getPropertyValues()); }