Class AfterInitializationStartEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterInitializationStartEvent>
-
- de.hybris.platform.integration.commons.event.AfterInitializationStartEventListener
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterInitializationStartEvent>
public class AfterInitializationStartEventListener extends AbstractEventListener<AfterInitializationStartEvent>
When hybris system initialization begins this listener will set a propertyOndemandcommonConstants.HYBRIS_SYSTEM_ISINITIALIZING_PROPERTY_KEYviaConfigurationServiceto true This flag can be used by other services to find out if the hybris initialization is in progress this includes impex data.Initialization.isCurrentTenantInitializing()returns false as soon as the schema is created
-
-
Constructor Summary
Constructors Constructor Description AfterInitializationStartEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurationServicegetConfigurationService()protected voidonEvent(AfterInitializationStartEvent event)This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetConfigurationService(ConfigurationService configurationService)-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Method Detail
-
onEvent
protected void onEvent(AfterInitializationStartEvent event)
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AfterInitializationStartEvent>- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-