Class DefaultPriceDataPreloadProcessor
java.lang.Object
com.broadleafcommerce.dataexchange.service.product.DefaultPriceDataPreloadProcessor
- All Implemented Interfaces:
BatchExtensionProcessor,org.springframework.core.Ordered
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPriceDataPreloadProcessor(PriceProvider<PriceData> pricingProvider, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod to determine if this handler should execute.voidpreProcess(BatchContext<?> batchContext) This method will be executed to allow customers to fetch, for example, data that is required for future processing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.dataexchange.service.BatchExtensionProcessor
getOrder, postProcess
-
Constructor Details
-
DefaultPriceDataPreloadProcessor
public DefaultPriceDataPreloadProcessor(PriceProvider<PriceData> pricingProvider, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
canHandle
Description copied from interface:BatchExtensionProcessorMethod to determine if this handler should execute.- Specified by:
canHandlein interfaceBatchExtensionProcessor- Returns:
-
preProcess
Description copied from interface:BatchExtensionProcessorThis method will be executed to allow customers to fetch, for example, data that is required for future processing. This is good in situations where you want to pre-fetch or batch fetch and pre-cache data for use within this batch context. Generally, implementors should save any results that they want to save and use later inBatchContext#getAdditionalProperties(). This method is called only ifBatchExtensionProcessor.canHandle(Class)returns true. It is executed inAbstractDataExchangeService.saveAll(List, ContextInfo)afterAbstractDataExchangeService.split(List, BatchContext)and beforeAbstractDataExchangeService.aggregate(BatchContext).- Specified by:
preProcessin interfaceBatchExtensionProcessor
-