Package com.hybris.backoffice.events
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:
java.util.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,AfterInitializationStartBackofficeSearchListener
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 Summary
Constructors Constructor Description AbstractBackofficeEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCallbackRegistered(ExternalEventCallback<T> callback)protected voidonEvent(T event)This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidregisterCallback(ExternalEventCallback<T> callback)voidunregisterCallback(ExternalEventCallback<T> callback)-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Method Detail
-
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:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<T extends AbstractEvent>- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
-