Interface FulfillmentCalculatorProvider
- All Known Implementing Classes:
DBFulfillmentCalculatorProvider
,ItemAttributeFlatRateFulfillmentCalculatorProvider
public interface FulfillmentCalculatorProvider
Interface to define a provider capable of returning
FulfillmentCalculator
instances.-
Method Summary
Modifier and TypeMethodDescriptionfindEligibleFulfillmentPricingCalculators
(FulfillmentPricingContext context, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of FulffillmentCalculator objects based on the passed in context.boolean
If true, this provider will be used to build the list of fulfillment calculators.
-
Method Details
-
findEligibleFulfillmentPricingCalculators
List<FulfillmentCalculator> findEligibleFulfillmentPricingCalculators(@NonNull FulfillmentPricingContext context, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of FulffillmentCalculator objects based on the passed in context.- Parameters:
context
- Container with the request and state objects needed to determine eligibility.contextInfo
- Context info sed for any DB operations.- Returns:
-
isEnabled
boolean isEnabled()If true, this provider will be used to build the list of fulfillment calculators.- Returns:
-