Class ServerEventDispatcher
- java.lang.Object
-
- de.uplanet.lucy.server.portalserver.ServerEventDispatcher
-
@Scriptable @SpringBeanAccessor public final class ServerEventDispatcher extends Object
A dispatcher for server events that must be defined in the Spring application context of the portal server.The dispatcher does not hold strong references to the registered listeners, so the caller must control the lifecycle of the listener instances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcheckAvailable()Deprecated.Do not use this method.static voidcheckAvailable(org.springframework.context.ApplicationContext p_appCtx)Check if theserverEventDispatcherbean is defined.static de.uplanet.lucy.server.portalserver.IServerEventDispatchergetInstance()Get theserverEventDispatcherbean.static de.uplanet.lucy.server.portalserver.IServerEventDispatchergetInstance(org.springframework.context.ApplicationContext p_appCtx)Get theserverEventDispatcherbean.
-
-
-
Field Detail
-
BEAN_NAME
public static final String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkAvailable
@Deprecated public static void checkAvailable()
Deprecated.Do not use this method.- Throws:
IllegalStateException- If the server event dispatcher is not available.
-
checkAvailable
public static void checkAvailable(org.springframework.context.ApplicationContext p_appCtx)
Check if theserverEventDispatcherbean is defined.- Throws:
IllegalStateException- If the server event dispatcher is not available.
-
getInstance
public static de.uplanet.lucy.server.portalserver.IServerEventDispatcher getInstance() throws org.springframework.beans.BeansExceptionGet theserverEventDispatcherbean.- Returns:
- The bean.
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException- If the beanserverEventDispatcheris not defined.org.springframework.beans.factory.BeanNotOfRequiredTypeException- If the bean is not of the required type.org.springframework.beans.BeansException- If the bean could not be created.
-
getInstance
public static de.uplanet.lucy.server.portalserver.IServerEventDispatcher getInstance(org.springframework.context.ApplicationContext p_appCtx) throws org.springframework.beans.BeansExceptionGet theserverEventDispatcherbean.- Parameters:
p_appCtx- The Spring application context.- Returns:
- The bean.
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException- If the beanserverEventDispatcheris not defined.org.springframework.beans.factory.BeanNotOfRequiredTypeException- If the bean is not of the required type.org.springframework.beans.BeansException- If the bean could not be created.
-
-