Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PojoPlugin |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2005-2011 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | // begin Kuali Foundation modification | |
17 | package org.kuali.rice.kns.web.struts.form.pojo; | |
18 | ||
19 | // deleted some imports | |
20 | // end Kuali Foundation modification | |
21 | ||
22 | ||
23 | import org.apache.commons.beanutils.BeanUtilsBean; | |
24 | import org.apache.commons.beanutils.ConvertUtilsBean; | |
25 | import org.apache.commons.beanutils.PropertyUtilsBean; | |
26 | import org.apache.struts.action.ActionServlet; | |
27 | import org.apache.struts.action.PlugIn; | |
28 | import org.apache.struts.config.ModuleConfig; | |
29 | ||
30 | import javax.servlet.ServletException; | |
31 | import java.util.logging.Logger; | |
32 | ||
33 | /** | |
34 | * begin Kuali Foundation modification | |
35 | * This class is the POJO Plugin implementation of the PlugIn interface. | |
36 | * end Kuali Foundation modification | |
37 | * | |
38 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
39 | */ | |
40 | // Kuali Foundation modification: class originally named SL plugin | |
41 | public class PojoPlugin implements PlugIn { | |
42 | 0 | static final Logger logger = Logger.getLogger(PojoPlugin.class.getName()); |
43 | ||
44 | 0 | public PojoPlugin() { |
45 | 0 | } |
46 | ||
47 | public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { | |
48 | // begin Kuali Foundation modification | |
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 | // end Kuali Foundation modification | |
56 | 0 | } |
57 | ||
58 | public void destroy() { | |
59 | 0 | } |
60 | } |