Klasse 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.

  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final String
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static void
    Veraltet.
    Do not use this method.
    static void
    checkAvailable(org.springframework.context.ApplicationContext p_appCtx)
    Check if the serverEventDispatcher bean is defined.
    static de.uplanet.lucy.server.portalserver.IServerEventDispatcher
    Get the serverEventDispatcher bean.
    static de.uplanet.lucy.server.portalserver.IServerEventDispatcher
    getInstance(org.springframework.context.ApplicationContext p_appCtx)
    Get the serverEventDispatcher bean.

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

  • Methodendetails

    • checkAvailable

      @Deprecated public static void checkAvailable()
      Veraltet.
      Do not use this method.
      Löst aus:
      IllegalStateException - If the server event dispatcher is not available.
    • checkAvailable

      public static void checkAvailable(org.springframework.context.ApplicationContext p_appCtx)
      Check if the serverEventDispatcher bean is defined.
      Löst aus:
      IllegalStateException - If the server event dispatcher is not available.
    • getInstance

      public static de.uplanet.lucy.server.portalserver.IServerEventDispatcher getInstance() throws org.springframework.beans.BeansException
      Get the serverEventDispatcher bean.
      Gibt zurück:
      The bean.
      Löst aus:
      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.
    • getInstance

      public static de.uplanet.lucy.server.portalserver.IServerEventDispatcher getInstance(org.springframework.context.ApplicationContext p_appCtx) throws org.springframework.beans.BeansException
      Get the serverEventDispatcher bean.
      Parameter:
      p_appCtx - The Spring application context.
      Gibt zurück:
      The bean.
      Löst aus:
      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.