1 | |
package org.kuali.rice.core.impl.services; |
2 | |
|
3 | |
import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader; |
4 | |
import org.kuali.rice.core.framework.impex.xml.XmlExporter; |
5 | |
import org.kuali.rice.core.impl.style.StyleXmlParser; |
6 | |
|
7 | 0 | public class CoreImplServiceLocator { |
8 | |
|
9 | |
public static final String STYLE_XML_LOADER = "styleXmlLoader"; |
10 | |
public static final String STYLE_XML_EXPORTER = "styleXmlExporter"; |
11 | |
|
12 | |
static <T> T getService(String serviceName) { |
13 | 0 | return GlobalResourceLoader.<T>getService(serviceName); |
14 | |
} |
15 | |
|
16 | |
public static StyleXmlParser getStyleXmlLoader() { |
17 | 0 | return getService(STYLE_XML_LOADER); |
18 | |
} |
19 | |
|
20 | |
public static XmlExporter getStyleXmlExporter() { |
21 | 0 | return getService(STYLE_XML_EXPORTER); |
22 | |
} |
23 | |
|
24 | |
} |