Class MultiCountryAddOnSampleDataEventListener

  • All Implemented Interfaces:
    java.util.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 Detail

      • MultiCountryAddOnSampleDataEventListener

        public MultiCountryAddOnSampleDataEventListener()
    • Method Detail

      • 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.