Spring Framework PropertyResourceConfigurer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework PropertyResourceConfigurer class.

This code example shows how to use the following methods:
 * This would make the bean "beanA" depend on beans "beanB" and "beanC". 
 *  
 * @author bdferris 
 *  
 */ 
public class DependencyConfigurer extends PropertyResourceConfigurer {
 
  private static Logger _log = LoggerFactory.getLogger(DependencyConfigurer.class); 
 
  private boolean _ignoreInvalidKeys = false;
 
  @Override 
  protected void processProperties(ConfigurableListableBeanFactory beanFactory,
      Properties props) throws BeansException {
 
    for (Enumeration<?> names = props.propertyNames(); names.hasMoreElements();) {
      String key = (String) names.nextElement();
      try { 
        processKey(beanFactory, key, props.getProperty(key));
      } catch (BeansException ex) {
4
CodeRank