| 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 |
|
|
|
|
|
| 68.8% |
Uncovered Elements: 5 (16) |
Complexity: 8 |
Complexity Density: 0.89 |
|
| 16 |
|
public abstract class PlaceholderConfigurer implements BeanNameAware, BeanFactoryAware, BeanFactoryPostProcessor, |
| 17 |
|
PriorityOrdered { |
| 18 |
|
|
| 19 |
|
private int order = Ordered.LOWEST_PRECEDENCE; |
| 20 |
|
|
| 21 |
|
private String beanName; |
| 22 |
|
private BeanFactory beanFactory; |
| 23 |
|
|
| 24 |
|
protected abstract void processPlaceholders(ConfigurableListableBeanFactory beanFactory); |
| 25 |
|
|
|
|
|
| 66.7% |
Uncovered Elements: 1 (3) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 26 |
1
|
@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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 35 |
0
|
public void setOrder(int order) {... |
| 36 |
0
|
this.order = order; |
| 37 |
|
} |
| 38 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 39 |
0
|
public int getOrder() {... |
| 40 |
0
|
return this.order; |
| 41 |
|
} |
| 42 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 43 |
14
|
public String getBeanName() {... |
| 44 |
14
|
return beanName; |
| 45 |
|
} |
| 46 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 47 |
1
|
public void setBeanName(String beanName) {... |
| 48 |
1
|
this.beanName = beanName; |
| 49 |
|
} |
| 50 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 51 |
1
|
public BeanFactory getBeanFactory() {... |
| 52 |
1
|
return beanFactory; |
| 53 |
|
} |
| 54 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 55 |
1
|
public void setBeanFactory(BeanFactory beanFactory) {... |
| 56 |
1
|
this.beanFactory = beanFactory; |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
} |