1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
27
28
29
30
31 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 final List<String> springFileLocations = new ArrayList<String>();
41 springFileLocations.add( KIM_INTERFACE_SPRING_BEANS_PATH );
42 if ( getRunMode().equals( RunMode.LOCAL ) || getRunMode().equals( RunMode.EMBEDDED ) ) {
43 springFileLocations.add(KIM_IMPL_SPRING_BEANS_PATH);
44 }
45 if ( isExposeServicesOnBus() ) {
46 if (isSetSOAPServicesAsDefault()) {
47 springFileLocations.add(KIM_KSB_SOAP_DEFAULT_SPRING_BEANS_PATH);
48 } else {
49 springFileLocations.add(KIM_KSB_SPRING_BEANS_PATH);
50 }
51 }
52 if ( isIncludeUserInterfaceComponents() ) {
53 springFileLocations.add(KIM_UI_SPRING_BEANS_PATH);
54 }
55 return springFileLocations;
56 }
57 }