1 package org.wamblee.system.spring;
3 import java.util.Properties;
5 import org.springframework.beans.BeansException;
6 import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
7 import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
10 * Bean that provides postprocessing of the bean factory based on
11 * a given set of properties.
13 * @author Erik Brakkee
15 class PropertySetter extends PropertyPlaceholderConfigurer {
18 * Constructs the property setter.
19 * @param aProps Properties.
21 public PropertySetter(Properties aProps) {
22 StringBuffer buf = new StringBuffer();
23 for (Object key: aProps.keySet()) {
26 buf.append(aProps.get(key));
29 setLocation(new StringResource(buf.toString()));