org.broadleafcommerce.core.pricing.service.tax.provider
Class TaxServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.core.pricing.service.tax.provider.TaxServiceImpl
All Implemented Interfaces:
TaxService

public class TaxServiceImpl
extends Object
implements TaxService


Field Summary
protected  ModuleConfigurationService moduleConfigService
           
protected  boolean mustCalculate
           
protected  List<TaxProvider> providers
           
 
Constructor Summary
TaxServiceImpl()
           
 
Method Summary
 Order calculateTaxForOrder(Order order)
           
 void setMustCalculate(boolean mustCalculate)
          Sets whether or not this service is required to delegate to a tax provider.
 void setTaxProviders(List<TaxProvider> providers)
          Sets a list of TaxProvider implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mustCalculate

protected boolean mustCalculate

providers

protected List<TaxProvider> providers

moduleConfigService

protected ModuleConfigurationService moduleConfigService
Constructor Detail

TaxServiceImpl

public TaxServiceImpl()
Method Detail

calculateTaxForOrder

public Order calculateTaxForOrder(Order order)
                           throws TaxException
Specified by:
calculateTaxForOrder in interface TaxService
Throws:
TaxException

setTaxProviders

public void setTaxProviders(List<TaxProvider> providers)
Sets a list of TaxProvider implementations.

Parameters:
providers -

setMustCalculate

public void setMustCalculate(boolean mustCalculate)
Sets whether or not this service is required to delegate to a tax provider. Setting this value to true will cause an exception if no tax providers are configured, or if none are eligible.

Parameters:
mustCalculate -


Copyright © 2013. All Rights Reserved.