Package org.kuali.rice.kcb.service
Class GlobalKCBServiceLocator
java.lang.Object
org.kuali.rice.kcb.service.GlobalKCBServiceLocator
Class that holds a singleton reference to KCBServiceLocator
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroy()Un-sets the KCBServiceLocator singleton, in order to fulfill a "lifecycle" contract (whereby init may be called again in the same class loader), specifically for unit tests.static KCBServiceLocatorReturns the KCBServiceLocator singletonstatic voidinit(org.springframework.beans.factory.BeanFactory beanFactory) The global initializer that constructs the KCBServiceLocator singletonstatic booleanReturns whether the GlobalKCBServiceLocator has already been initialized (classloader scoped)
-
Constructor Details
-
GlobalKCBServiceLocator
public GlobalKCBServiceLocator()
-
-
Method Details
-
init
public static void init(org.springframework.beans.factory.BeanFactory beanFactory) The global initializer that constructs the KCBServiceLocator singleton- Parameters:
beanFactory- the beanFactory from which to construct the KCBServiceLocator
-
isInitialized
public static boolean isInitialized()Returns whether the GlobalKCBServiceLocator has already been initialized (classloader scoped)- Returns:
- whether the GlobalKCBServiceLocator has already been initialized (classloader scoped)
-
destroy
public static void destroy()Un-sets the KCBServiceLocator singleton, in order to fulfill a "lifecycle" contract (whereby init may be called again in the same class loader), specifically for unit tests. -
getInstance
Returns the KCBServiceLocator singleton- Returns:
- the KCBServiceLocator singleton
-