1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.config; |
17 | |
|
18 | |
import org.kuali.rice.core.api.config.module.RunMode; |
19 | |
import org.kuali.rice.core.impl.config.module.ModuleConfigurer; |
20 | |
|
21 | |
import java.util.ArrayList; |
22 | |
import java.util.List; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | 0 | public class KIMConfigurer extends ModuleConfigurer { |
31 | |
private static final String KIM_INTERFACE_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/impl/config/KIMInterfaceSpringBeans.xml"; |
32 | |
private static final String KIM_IMPL_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/impl/config/KIMImplementationSpringBeans.xml"; |
33 | |
private static final String KIM_KSB_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/impl/config/KIMServiceBusSpringBeans.xml"; |
34 | |
private static final String KIM_UI_SPRING_BEANS_PATH = "classpath:org/kuali/rice/kim/impl/config/KIMUserInterfaceSpringBeans.xml"; |
35 | |
|
36 | |
@Override |
37 | |
public List<String> getPrimarySpringFiles() { |
38 | 0 | final List<String> springFileLocations = new ArrayList<String>(); |
39 | 0 | springFileLocations.add( KIM_INTERFACE_SPRING_BEANS_PATH ); |
40 | 0 | if ( getRunMode().equals( RunMode.LOCAL ) || getRunMode().equals( RunMode.EMBEDDED ) ) { |
41 | 0 | springFileLocations.add(KIM_IMPL_SPRING_BEANS_PATH); |
42 | |
} |
43 | 0 | if ( isExposeServicesOnBus() ) { |
44 | 0 | springFileLocations.add(KIM_KSB_SPRING_BEANS_PATH); |
45 | |
} |
46 | 0 | if ( isIncludeUserInterfaceComponents() ) { |
47 | 0 | springFileLocations.add(KIM_UI_SPRING_BEANS_PATH); |
48 | |
} |
49 | 0 | return springFileLocations; |
50 | |
} |
51 | |
} |