1 package org.kuali.spring.util; 2 3 import org.springframework.beans.BeanUtils; 4 import org.springframework.beans.BeansException; 5 import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; 6 import org.springframework.util.Assert; 7 8 public class DelegatingPropertyPlaceholderConfigurer extends ConfigurablePropertyPlaceholderConfigurer { 9 10 ConfigurablePropertyPlaceholderConfigurer delegate; 11 12 @Override 13 public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { 14 Assert.notNull(delegate); 15 BeanUtils.copyProperties(this, delegate); 16 delegate.postProcessBeanFactory(beanFactory); 17 } 18 19 public ConfigurablePropertyPlaceholderConfigurer getDelegate() { 20 return delegate; 21 } 22 23 public void setDelegate(ConfigurablePropertyPlaceholderConfigurer delegate) { 24 this.delegate = delegate; 25 } 26 27 }