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 | 0 | public class DelegatingPropertyPlaceholderConfigurer extends ConfigurablePropertyPlaceholderConfigurer { |
9 | |
|
10 | |
ConfigurablePropertyPlaceholderConfigurer delegate; |
11 | |
|
12 | |
@Override |
13 | |
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { |
14 | 0 | Assert.notNull(delegate); |
15 | 0 | BeanUtils.copyProperties(this, delegate); |
16 | 0 | delegate.postProcessBeanFactory(beanFactory); |
17 | 0 | } |
18 | |
|
19 | |
public ConfigurablePropertyPlaceholderConfigurer getDelegate() { |
20 | 0 | return delegate; |
21 | |
} |
22 | |
|
23 | |
public void setDelegate(ConfigurablePropertyPlaceholderConfigurer delegate) { |
24 | 0 | this.delegate = delegate; |
25 | 0 | } |
26 | |
|
27 | |
} |