@Scriptable
@SpringBeanAccessor
public final class ServerEventDispatcher
extends java.lang.Object
The dispatcher does not hold strong references to the registered listeners, so the caller must control the lifecycle of the listener instances.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEAN_NAME |
Modifier and Type | Method and Description |
---|---|
static void |
checkAvailable()
Check if the
serverEventDispatcher bean is defined. |
static de.uplanet.lucy.server.portalserver.IServerEventDispatcher |
getInstance()
Get the
serverEventDispatcher bean. |
public static final java.lang.String BEAN_NAME
public static void checkAvailable() throws java.lang.IllegalStateException
serverEventDispatcher
bean is defined.java.lang.IllegalStateException
- If the server event dispatcher is
not available.public static de.uplanet.lucy.server.portalserver.IServerEventDispatcher getInstance() throws org.springframework.beans.BeansException
serverEventDispatcher
bean.org.springframework.beans.factory.NoSuchBeanDefinitionException
- If the bean serverEventDispatcher
is 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.