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 Summary
FieldsModifier and TypeFieldDescriptionprotected BroadleafCurrencyServiceprotected LocaleServiceprotected SiteService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CataloggetCatalog(T event) protected BroadleafCurrencygetCurrency(T event) protected Localeprotected SitegetProfile(T event) protected Siteprotected TimeZonegetTimeZone(T event) protected abstract voidhandleApplicationEvent(T event) final voidonApplicationEvent(T event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.broadleafcommerce.common.event.BroadleafApplicationListener
isAsynchronous
-
Field Details
-
siteService
-
currencyService
-
localeService
-
-
Constructor Details
-
AbstractBroadleafApplicationEventListener
public AbstractBroadleafApplicationEventListener()
-
-
Method Details
-
handleApplicationEvent
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<T extends BroadleafApplicationEvent>
-
getSite
-
getCatalog
-
getProfile
-
getCurrency
-
getLocale
-
getTimeZone
-