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