Class AbstractBroadleafApplicationEventListener<T extends BroadleafApplicationEvent>

java.lang.Object
org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener<T>
All Implemented Interfaces:
EventListener, BroadleafApplicationListener<T>, org.springframework.context.ApplicationListener<T>

public abstract class AbstractBroadleafApplicationEventListener<T extends BroadleafApplicationEvent> extends Object implements BroadleafApplicationListener<T>
This abstract class contains the plumbing that sets up the context for handling a BroadleafApplicationEvent.
Author:
Nick Crum ncrum
  • Field Details

    • siteService

      @Autowired @Qualifier("blSiteService") protected SiteService siteService
    • currencyService

      @Autowired @Qualifier("blCurrencyService") protected BroadleafCurrencyService currencyService
    • localeService

      @Autowired @Qualifier("blLocaleService") protected LocaleService localeService
  • Constructor Details

    • AbstractBroadleafApplicationEventListener

      public AbstractBroadleafApplicationEventListener()
  • Method Details

    • handleApplicationEvent

      protected abstract void handleApplicationEvent(T event)
    • onApplicationEvent

      public final void onApplicationEvent(T event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<T extends BroadleafApplicationEvent>
    • getSite

      protected Site getSite(T event)
    • getCatalog

      protected Catalog getCatalog(T event)
    • getProfile

      protected Site getProfile(T event)
    • getCurrency

      protected BroadleafCurrency getCurrency(T event)
    • getLocale

      protected Locale getLocale(T event)
    • getTimeZone

      protected TimeZone getTimeZone(T event)