Coverage Report - org.kuali.rice.kim.config.KIMConfigurer
 
Classes in this File Line Coverage Branch Coverage Complexity
KIMConfigurer
0%
0/12
0%
0/10
6
 
 1  
 /*
 2  
  * Copyright 2006-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  
 
 17  
 package org.kuali.rice.kim.config;
 18  
 
 19  
 import org.kuali.rice.core.api.config.module.RunMode;
 20  
 import org.kuali.rice.core.impl.config.module.ModuleConfigurer;
 21  
 
 22  
 import java.util.ArrayList;
 23  
 import java.util.List;
 24  
 
 25  
 /**
 26  
  * This class handles the Spring based KIM configuration that is part of the Rice Configurer that must 
 27  
  * exist in all Rice based systems and clients. 
 28  
  * 
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  */
 31  0
 public class KIMConfigurer extends ModuleConfigurer {
 32  
         private static final String KIM_INTERFACE_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/config/KIMInterfaceSpringBeans.xml";
 33  
         private static final String KIM_IMPL_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/config/KIMImplementationSpringBeans.xml";
 34  
         private static final String KIM_KSB_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/config/KIMServiceBusSpringBeans.xml";
 35  
         private static final String KIM_KSB_SOAP_DEFAULT_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/config/KIMServiceBusSOAPDefaultSpringBeans.xml";
 36  
         private static final String KIM_UI_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/config/KIMUserInterfaceSpringBeans.xml";
 37  
         
 38  
         @Override
 39  
         public List<String> getPrimarySpringFiles() {
 40  0
                 final List<String> springFileLocations = new ArrayList<String>();
 41  0
                 springFileLocations.add( KIM_INTERFACE_SPRING_BEANS_PATH );
 42  0
                 if ( getRunMode().equals( RunMode.LOCAL ) || getRunMode().equals( RunMode.EMBEDDED ) ) {
 43  0
                         springFileLocations.add(KIM_IMPL_SPRING_BEANS_PATH);
 44  
                 }
 45  0
                 if ( isExposeServicesOnBus() ) {
 46  0
                         if (isSetSOAPServicesAsDefault()) {
 47  0
                                 springFileLocations.add(KIM_KSB_SOAP_DEFAULT_SPRING_BEANS_PATH);
 48  
                         } else {
 49  0
                                 springFileLocations.add(KIM_KSB_SPRING_BEANS_PATH);
 50  
                         }
 51  
                 }
 52  0
                 if ( isIncludeUserInterfaceComponents() ) {
 53  0
                         springFileLocations.add(KIM_UI_SPRING_BEANS_PATH);
 54  
                 }
 55  0
                 return springFileLocations;
 56  
         }
 57  
 }