Class OrgUnitAfterInitializationEndEventListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterInitializationEndEvent>
de.hybris.platform.commerceservices.organization.listeners.impl.OrgUnitAfterInitializationEndEventListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterInitializationEndEvent>
public class OrgUnitAfterInitializationEndEventListener
extends AbstractEventListener<AfterInitializationEndEvent>
Event listener for the
AfterInitializationEndEvent which triggers the generation of hierarchy paths for
organizational units of the configured unitType after initialization has finished.-
Constructor Summary
ConstructorsConstructorDescriptionOrgUnitAfterInitializationEndEventListener(Class<? extends OrgUnitModel> unitType) Constructor setting the type to generate unit paths for -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationServiceprotected OrgUnitHierarchyServiceprotected voidThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetConfigurationService(ConfigurationService configurationService) voidsetOrgUnitHierarchyService(OrgUnitHierarchyService orgUnitHierarchyService) Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
OrgUnitAfterInitializationEndEventListener
Constructor setting the type to generate unit paths for- Parameters:
unitType- the unit type to generate path values for
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AfterInitializationEndEvent>- Parameters:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getOrgUnitHierarchyService
-
setOrgUnitHierarchyService
-
getConfigurationService
-
setConfigurationService
-