Class MultiCountryAddOnSampleDataEventListener

All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<AbstractEvent>

public class MultiCountryAddOnSampleDataEventListener extends GenericAddOnSampleDataEventListener
This class extends GenericAddOnSampleDataEventListener and tweaks its behaviour to import sample data organized hierarchically as required for multi-country set-ups.
  • Constructor Details

    • MultiCountryAddOnSampleDataEventListener

      public MultiCountryAddOnSampleDataEventListener()
  • Method Details

    • onEvent

      protected void onEvent(AbstractEvent event)
      Description copied from class: AbstractEventListener
      This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
      Overrides:
      onEvent in class GenericAddOnSampleDataEventListener
      Parameters:
      event - the event to be processed
      See Also:
      • ApplicationListener.onApplicationEvent(ApplicationEvent)
    • appendElectronicsMultiCountryImportData

      protected void appendElectronicsMultiCountryImportData(SampleDataImportedEvent event)
      Adds to the import data in the event the MultiCountry catalogs and stores to load.
      Parameters:
      event - the event to which to add multiCountry data info.