View Javadoc

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.krms.config;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  import org.kuali.rice.core.impl.config.module.ModuleConfigurer;
23  
24  /**
25   * This class handles the Spring based KRMS configuration that is part of the Rice Configurer that must 
26   * exist in all Rice based systems and clients. 
27   * 
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   */
30  public class KRMSConfigurer extends ModuleConfigurer {
31  
32  	private static final String KRMS_SPRING_BEANS_PATH = "classpath:org/kuali/rice/krms/config/KRMSSpringBeans.xml";
33      private static final String KRMS_KSB_SPRING_BEANS_PATH = "classpath:org/kuali/rice/krms/config/KRMSServiceBusSpringBeans.xml";
34  
35  	
36  	@Override
37  	public List<String> getPrimarySpringFiles() {
38  		final List<String> springFileLocations = new ArrayList<String>();
39  		springFileLocations.add( KRMS_SPRING_BEANS_PATH );
40  
41          if ( isExposeServicesOnBus() ) {
42  		    springFileLocations.add(KRMS_KSB_SPRING_BEANS_PATH);
43  		}
44  
45  		return springFileLocations;
46  	}
47  	
48  }