Coverage Report - org.kuali.rice.core.api.services.CoreApiServiceLocator
 
Classes in this File Line Coverage Branch Coverage Complexity
CoreApiServiceLocator
0%
0/8
N/A
1
 
 1  
 package org.kuali.rice.core.api.services;
 2  
 
 3  
 import org.kuali.rice.core.api.CoreConstants;
 4  
 import org.kuali.rice.core.api.datetime.DateTimeService;
 5  
 import org.kuali.rice.core.api.encryption.EncryptionService;
 6  
 import org.kuali.rice.core.api.impex.xml.XmlExporterService;
 7  
 import org.kuali.rice.core.api.impex.xml.XmlIngesterService;
 8  
 import org.kuali.rice.core.api.namespace.NamespaceService;
 9  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 10  
 import org.kuali.rice.core.api.style.StyleService;
 11  
 
 12  0
 public class CoreApiServiceLocator {
 13  
 
 14  
         public static final String NAMESPACE_SERVICE = "namespaceService";
 15  
         public static final String XML_EXPORTER_SERVICE = "xmlExporterService";
 16  
         public static final String XML_INGESTER_SERVICE = "xmlIngesterService";
 17  
         public static final String STYLE_SERVICE = "styleService";
 18  
         
 19  
     static <T> T getService(String serviceName) {
 20  0
         return GlobalResourceLoader.<T>getService(serviceName);
 21  
     }
 22  
 
 23  
     public static NamespaceService getNamespaceService() {
 24  0
         return getService(NAMESPACE_SERVICE);
 25  
     }
 26  
     
 27  
     public static XmlExporterService getXmlExporterService() {
 28  0
         return getService(XML_EXPORTER_SERVICE);
 29  
     }
 30  
     
 31  
     public static XmlIngesterService getXmlIngesterService() {
 32  0
         return getService(XML_INGESTER_SERVICE);
 33  
     }
 34  
     
 35  
     public static final EncryptionService getEncryptionService() {
 36  0
         return getService(CoreConstants.Services.ENCRYPTION_SERVICE);
 37  
     }
 38  
     
 39  
     public static StyleService getStyleService() {
 40  0
             return getService(STYLE_SERVICE);
 41  
     }
 42  
 
 43  
         public static DateTimeService getDateTimeService() {
 44  0
             return getService(CoreConstants.Services.DATETIME_SERVICE);
 45  
         }
 46  
 }