Class ProductConfigAfterInitializationStartEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterInitializationStartEvent>
-
- de.hybris.platform.sap.productconfig.services.event.impl.ProductConfigAfterInitializationStartEventListener
-
- 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 ProductConfigAfterInitializationStartEventListener extends AbstractEventListener<AfterInitializationStartEvent>
Event Handler to release CPS runtime configurations just before the System is initialiazed.
The Lifecycle of any CPS runtime configuration created is managed by Hybris. When we initialize, any data on persistet configurations are lost, hence we have to also infor the CPS service, that the corresponding CPS runtime configuratiuon can be deleted.
-
-
Constructor Summary
Constructors Constructor Description ProductConfigAfterInitializationStartEventListener()
-
Method Summary
-
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:AbstractEventListener
This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)
and processes the given event.- Specified by:
onEvent
in classAbstractEventListener<AfterInitializationStartEvent>
- Parameters:
event
- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
onEventInternal
protected void onEventInternal(AfterInitializationStartEvent event)
-
getConfigs
protected SearchPageData<ProductConfigurationModel> getConfigs(java.lang.Integer currentPage)
-
createEmptyResult
protected SearchPageData<ProductConfigurationModel> createEmptyResult()
-
prepeareCleanUp
protected boolean prepeareCleanUp()
-
collectAllConfigIds
protected java.lang.String collectAllConfigIds()
-
collectIds
protected void collectIds(java.util.List<ProductConfigurationModel> list, java.lang.StringBuilder builder)
-
releaseConfigs
protected void releaseConfigs(java.util.List<ProductConfigurationModel> list, java.lang.StringBuilder builder)
-
releaseConfig
protected void releaseConfig(ConfigurationProvider configurationProviderCPS, ProductConfigurationModel model, java.lang.StringBuilder builder)
-
getProductConfigEventListenerUtil
protected ProductConfigEventListenerUtil getProductConfigEventListenerUtil()
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
getProductConfigurationPersistenceService
protected ProductConfigurationPersistenceService getProductConfigurationPersistenceService()
-
getConfigurationProviderCPS
protected ConfigurationProvider getConfigurationProviderCPS()
-
getProductConfigurationPagingUtil
protected ProductConfigurationPagingUtil getProductConfigurationPagingUtil()
-
-