| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.kuali.rice.kns.web.struts.pojo; |
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
import java.util.logging.Logger; |
| 23 |
|
|
| 24 |
|
import javax.servlet.ServletException; |
| 25 |
|
|
| 26 |
|
import org.apache.commons.beanutils.BeanUtilsBean; |
| 27 |
|
import org.apache.commons.beanutils.ConvertUtilsBean; |
| 28 |
|
import org.apache.commons.beanutils.PropertyUtilsBean; |
| 29 |
|
import org.apache.struts.action.ActionServlet; |
| 30 |
|
import org.apache.struts.action.PlugIn; |
| 31 |
|
import org.apache.struts.config.ModuleConfig; |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
@author |
| 39 |
|
|
| 40 |
|
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 3 |
Complexity Density: 0.6 |
|
| 41 |
|
public class PojoPlugin implements PlugIn { |
| 42 |
|
static final Logger logger = Logger.getLogger(PojoPlugin.class.getName()); |
| 43 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 44 |
0
|
public PojoPlugin() {... |
| 45 |
|
} |
| 46 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
| 47 |
0
|
public void init(ActionServlet servlet, ModuleConfig config) throws ServletException {... |
| 48 |
|
|
| 49 |
0
|
ConvertUtilsBean convUtils = new ConvertUtilsBean(); |
| 50 |
0
|
PropertyUtilsBean propUtils = new PojoPropertyUtilsBean(); |
| 51 |
0
|
BeanUtilsBean pojoBeanUtils = new BeanUtilsBean(convUtils, propUtils); |
| 52 |
|
|
| 53 |
0
|
BeanUtilsBean.setInstance(pojoBeanUtils); |
| 54 |
0
|
logger.fine("Initialized BeanUtilsBean with " + pojoBeanUtils); |
| 55 |
|
|
| 56 |
|
} |
| 57 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 58 |
0
|
public void destroy() {... |
| 59 |
|
} |
| 60 |
|
} |