Coverage Report - org.kuali.rice.kns.util.spring.ClassPathXmlApplicationContext
 
Classes in this File Line Coverage Branch Coverage Complexity
ClassPathXmlApplicationContext
0%
0/19
N/A
1
 
 1  
 /*
 2  
  * Copyright 2006-2008 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  
 package org.kuali.rice.kns.util.spring;
 17  
 
 18  
 import org.springframework.beans.BeansException;
 19  
 import org.springframework.beans.factory.support.DefaultListableBeanFactory;
 20  
 import org.springframework.context.ApplicationContext;
 21  
 
 22  
 /**
 23  
  * This class is what is recommended by the spring folks to get around stronger validation in spring 2 that tries to prevent circular
 24  
  * references: http://opensource.atlassian.com/projects/spring/browse/SPR-2415?page=comments
 25  
  */
 26  
 public class ClassPathXmlApplicationContext extends org.springframework.context.support.ClassPathXmlApplicationContext {
 27  
 
 28  
     /**
 29  
      * Sets allowRawInjectionDespiteWrapping to true.
 30  
      * 
 31  
      * @see org.springframework.context.support.AbstractRefreshableApplicationContext#createBeanFactory()
 32  
      */
 33  
     @Override
 34  
     protected DefaultListableBeanFactory createBeanFactory() {
 35  0
         DefaultListableBeanFactory beanFactory = super.createBeanFactory();
 36  0
         beanFactory.setAllowRawInjectionDespiteWrapping(true);
 37  0
         return beanFactory;
 38  
     }
 39  
 
 40  
     /**
 41  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String)
 42  
      */
 43  
     public ClassPathXmlApplicationContext(String configLocation) throws BeansException {
 44  0
         super(configLocation);
 45  0
     }
 46  
 
 47  
     /**
 48  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String[])
 49  
      */
 50  
     public ClassPathXmlApplicationContext(String[] configLocations) throws BeansException {
 51  0
         super(configLocations);
 52  0
     }
 53  
 
 54  
     /**
 55  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String[],org.springframework.context.ApplicationContext)
 56  
      */
 57  
     public ClassPathXmlApplicationContext(String[] configLocations, ApplicationContext parent) throws BeansException {
 58  0
         super(configLocations, parent);
 59  0
     }
 60  
 
 61  
     /**
 62  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String[],boolean)
 63  
      */
 64  
     public ClassPathXmlApplicationContext(String[] configLocations, boolean refresh) throws BeansException {
 65  0
         super(configLocations, refresh);
 66  0
     }
 67  
 
 68  
     /**
 69  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String[],boolean,org.springframework.context.ApplicationContext)
 70  
      */
 71  
     public ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, ApplicationContext parent) throws BeansException {
 72  0
         super(configLocations, refresh, parent);
 73  0
     }
 74  
 
 75  
     /**
 76  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String,java.lang.Class)
 77  
      */
 78  
     public ClassPathXmlApplicationContext(String path, Class clazz) throws BeansException {
 79  0
         super(path, clazz);
 80  0
     }
 81  
 
 82  
     /**
 83  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String[],java.lang.Class)
 84  
      */
 85  
     public ClassPathXmlApplicationContext(String[] paths, Class clazz) throws BeansException {
 86  0
         super(paths, clazz);
 87  0
     }
 88  
 
 89  
     /**
 90  
      * @see org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String[],java.lang.Class,org.springframework.context.ApplicationContext)
 91  
      */
 92  
     public ClassPathXmlApplicationContext(String[] paths, Class clazz, ApplicationContext parent) throws BeansException {
 93  0
         super(paths, clazz, parent);
 94  0
     }
 95  
 }