Coverage Report - org.kuali.rice.ksb.api.bus.services.KsbApiServiceLocator
 
Classes in this File Line Coverage Branch Coverage Complexity
KsbApiServiceLocator
0%
0/6
N/A
1
 
 1  
 package org.kuali.rice.ksb.api.bus.services;
 2  
 
 3  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 4  
 import org.kuali.rice.ksb.api.bus.ServiceBus;
 5  
 import org.kuali.rice.ksb.api.cache.RiceCacheAdministrator;
 6  
 import org.kuali.rice.ksb.api.messaging.MessageHelper;
 7  
 import org.kuali.rice.ksb.api.registry.ServiceRegistry;
 8  
 
 9  
 /**
 10  
  * TODO...
 11  
  */
 12  0
 public class KsbApiServiceLocator {
 13  
 
 14  
         public static final String SERVICE_BUS = "rice.ksb.serviceBus";
 15  
         public static final String SERVICE_REGISTRY = "rice.ksb.serviceRegistry";
 16  
     public static final String CACHE_ADMINISTRATOR = "enCacheAdministrator";
 17  
     public static final String MESSAGE_HELPER = "rice.ksb.messageHelper";
 18  
 
 19  
     static <T> T getService(String serviceName) {
 20  0
         return GlobalResourceLoader.<T>getService(serviceName);
 21  
     }
 22  
 
 23  
     public static ServiceBus getServiceBus() {
 24  0
         return getService(SERVICE_BUS);
 25  
     }
 26  
     
 27  
     public static ServiceRegistry getServiceRegistry() {
 28  0
             return getService(SERVICE_REGISTRY);
 29  
     }
 30  
 
 31  
     public static RiceCacheAdministrator getCacheAdministrator() {
 32  0
         return getService(CACHE_ADMINISTRATOR);
 33  
     }
 34  
 
 35  
     public static MessageHelper getMessageHelper() {
 36  0
         return getService(MESSAGE_HELPER);
 37  
     }
 38  
 }