Class LockPurgeHandler
java.lang.Object
com.broadleafcommerce.subscription.service.LockPurgeHandler
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<LockPurgedEvent>
public class LockPurgeHandler
extends Object
implements org.springframework.context.ApplicationListener<LockPurgedEvent>
This class listens for
LockPurgedEvent and reverts or commits the subscription and its
related entities.-
Constructor Summary
ConstructorsConstructorDescriptionLockPurgeHandler(SubscriptionService<Subscription, SubscriptionWithItems> subscriptionService, SubscriptionItemService<SubscriptionItem> subscriptionItemService, SubscriptionItemAdjustmentService<SubscriptionItemAdjustment> subscriptionItemAdjustmentService, SubscriptionAdjustmentService<SubscriptionAdjustment> subscriptionAdjustmentService, org.springframework.transaction.support.TransactionTemplate transactionTemplate) -
Method Summary
Modifier and TypeMethodDescriptionprotected SubscriptionFind an example subscription from which tenant related context information may be harvested.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
LockPurgeHandler
public LockPurgeHandler(SubscriptionService<Subscription, SubscriptionWithItems> subscriptionService, SubscriptionItemService<SubscriptionItem> subscriptionItemService, SubscriptionItemAdjustmentService<SubscriptionItemAdjustment> subscriptionItemAdjustmentService, SubscriptionAdjustmentService<SubscriptionAdjustment> subscriptionAdjustmentService, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<LockPurgedEvent>
-
getTenantInformationExample
Find an example subscription from which tenant related context information may be harvested.- Parameters:
event- the event- Returns:
- the subscription
-