All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.spring.util.DelegatingPropertyPlaceholderConfigurer Maven / Gradle / Ivy

The newest version!
package org.kuali.spring.util;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.util.Assert;

public class DelegatingPropertyPlaceholderConfigurer extends ConfigurablePropertyPlaceholderConfigurer {

	ConfigurablePropertyPlaceholderConfigurer delegate;

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		Assert.notNull(delegate);
		BeanUtils.copyProperties(this, delegate);
		delegate.postProcessBeanFactory(beanFactory);
	}

	public ConfigurablePropertyPlaceholderConfigurer getDelegate() {
		return delegate;
	}

	public void setDelegate(ConfigurablePropertyPlaceholderConfigurer delegate) {
		this.delegate = delegate;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy