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:
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.
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidcollectIds(List<ProductConfigurationModel> list, StringBuilder builder) protected SearchPageData<ProductConfigurationModel>protected BaseSiteServiceprotected SearchPageData<ProductConfigurationModel>getConfigs(Integer currentPage) protected ConfigurationProviderprotected ProductConfigEventListenerUtilprotected ProductConfigurationPagingUtilprotected ProductConfigurationPersistenceServiceprotected voidThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.protected voidprotected booleanprotected voidreleaseConfig(ConfigurationProvider configurationProviderCPS, ProductConfigurationModel model, StringBuilder faildIdsBuilder) protected voidreleaseConfigs(List<ProductConfigurationModel> list, StringBuilder faildIdsBuilder) Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
ProductConfigAfterInitializationStartEventListener
public ProductConfigAfterInitializationStartEventListener()
-
-
Method Details
-
onEvent
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)
-
onEventInternal
-
getConfigs
-
createEmptyResult
-
prepeareCleanUp
protected boolean prepeareCleanUp() -
collectAllConfigIds
-
collectIds
-
releaseConfigs
-
releaseConfig
protected void releaseConfig(ConfigurationProvider configurationProviderCPS, ProductConfigurationModel model, StringBuilder faildIdsBuilder) -
getProductConfigEventListenerUtil
-
getBaseSiteService
-
getProductConfigurationPersistenceService
-
getConfigurationProviderCPS
-
getProductConfigurationPagingUtil
-