Clover Coverage Report - Kuali Spring Utilities 1.0.0-SNAPSHOT
Coverage timestamp: Wed Apr 13 2011 08:32:29 EST
../../../../img/srcFileCovDistChart7.png 30% of files have more coverage
9   59   8   1.29
0   43   0.89   7
7     1.14  
1    
 
  PlaceholderConfigurer       Line # 16 9 0% 8 5 68.8% 0.6875
 
No Tests
 
1    package org.kuali.spring.util;
2   
3    import org.springframework.beans.BeansException;
4    import org.springframework.beans.factory.BeanFactory;
5    import org.springframework.beans.factory.BeanFactoryAware;
6    import org.springframework.beans.factory.BeanInitializationException;
7    import org.springframework.beans.factory.BeanNameAware;
8    import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
9    import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
10    import org.springframework.core.Ordered;
11    import org.springframework.core.PriorityOrdered;
12   
13    /**
14    *
15    */
 
16    public abstract class PlaceholderConfigurer implements BeanNameAware, BeanFactoryAware, BeanFactoryPostProcessor,
17    PriorityOrdered {
18   
19    private int order = Ordered.LOWEST_PRECEDENCE; // default: same as non-Ordered
20   
21    private String beanName;
22    private BeanFactory beanFactory;
23   
24    protected abstract void processPlaceholders(ConfigurableListableBeanFactory beanFactory);
25   
 
26  1 toggle @Override
27    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
28  1 try {
29  1 processPlaceholders(beanFactory);
30    } catch (Exception e) {
31  0 throw new BeanInitializationException("Could not complete placeholder configuration", e);
32    }
33    }
34   
 
35  0 toggle public void setOrder(int order) {
36  0 this.order = order;
37    }
38   
 
39  0 toggle public int getOrder() {
40  0 return this.order;
41    }
42   
 
43  14 toggle public String getBeanName() {
44  14 return beanName;
45    }
46   
 
47  1 toggle public void setBeanName(String beanName) {
48  1 this.beanName = beanName;
49    }
50   
 
51  1 toggle public BeanFactory getBeanFactory() {
52  1 return beanFactory;
53    }
54   
 
55  1 toggle public void setBeanFactory(BeanFactory beanFactory) {
56  1 this.beanFactory = beanFactory;
57    }
58   
59    }