Class AbstractBackofficeEventListener<T extends AbstractEvent>

java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<T>
com.hybris.backoffice.events.AbstractBackofficeEventListener<T>
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<T>
Direct Known Subclasses:
AfterInitializationEndBackofficeListener, AfterInitializationEndBackofficeSearchListener, AfterInitializationEndBackofficeSearchListener, AfterInitializationStartBackofficeSearchListener, BackofficeRoleChangeEventListenerRegister

public abstract class AbstractBackofficeEventListener<T extends AbstractEvent> extends AbstractEventListener<T>
Abstract listener for platform events, has to be extended for every concrete event type
  • Constructor Details

    • AbstractBackofficeEventListener

      public AbstractBackofficeEventListener()
  • Method Details

    • registerCallback

      public void registerCallback(ExternalEventCallback<T> callback)
    • unregisterCallback

      public void unregisterCallback(ExternalEventCallback<T> callback)
    • isCallbackRegistered

      public boolean isCallbackRegistered(ExternalEventCallback<T> callback)
    • onEvent

      protected void onEvent(T event)
      Description copied from class: AbstractEventListener
      This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
      Specified by:
      onEvent in class AbstractEventListener<T extends AbstractEvent>
      Parameters:
      event - the event to be processed
      See Also:
      • ApplicationListener.onApplicationEvent(ApplicationEvent)