1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.impl.services; |
17 | |
|
18 | |
import org.kuali.rice.core.api.cache.CacheManagerRegistry; |
19 | |
import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader; |
20 | |
import org.kuali.rice.core.framework.impex.xml.XmlExporter; |
21 | |
import org.kuali.rice.core.impl.style.StyleXmlParser; |
22 | |
|
23 | 0 | public class CoreImplServiceLocator { |
24 | |
|
25 | |
public static final String STYLE_XML_LOADER = "styleXmlLoader"; |
26 | |
public static final String STYLE_XML_EXPORTER = "styleXmlExporter"; |
27 | |
public static final String CACHE_MANAGER_REGISTRY = "cacheManagerRegistry"; |
28 | |
|
29 | |
static <T> T getService(String serviceName) { |
30 | 0 | return GlobalResourceLoader.<T>getService(serviceName); |
31 | |
} |
32 | |
|
33 | |
public static StyleXmlParser getStyleXmlLoader() { |
34 | 0 | return getService(STYLE_XML_LOADER); |
35 | |
} |
36 | |
|
37 | |
public static XmlExporter getStyleXmlExporter() { |
38 | 0 | return getService(STYLE_XML_EXPORTER); |
39 | |
} |
40 | |
|
41 | |
public static CacheManagerRegistry getCacheManagerRegistry() { |
42 | 0 | return getService(CACHE_MANAGER_REGISTRY); |
43 | |
} |
44 | |
|
45 | |
} |