Class CommerceCartFactory
- java.lang.Object
-
- de.hybris.platform.order.impl.DefaultCartFactory
-
- de.hybris.platform.commerceservices.order.impl.CommerceCartFactory
-
- All Implemented Interfaces:
CartFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
DefaultSelectiveCartFactory
public class CommerceCartFactory extends DefaultCartFactory
Extension ofDefaultCartFactoryto additionally initialize the following fields:- net/gross setting, delegated to an instance of
NetGrossStrategy BaseSiteBaseStore
-
-
Constructor Summary
Constructors Constructor Description CommerceCartFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CartModelcreateCartInternal()Creates a newCartModelinstance without persisting it.protected BaseSiteServicegetBaseSiteService()protected BaseStoreServicegetBaseStoreService()protected KeyGeneratorgetGuidKeyGenerator()protected NetGrossStrategygetNetGrossStrategy()voidsetBaseSiteService(BaseSiteService siteService)voidsetBaseStoreService(BaseStoreService service)voidsetGuidKeyGenerator(KeyGenerator guidKeyGenerator)voidsetNetGrossStrategy(NetGrossStrategy netGrossStrategy)-
Methods inherited from class de.hybris.platform.order.impl.DefaultCartFactory
afterPropertiesSet, createCart, setApplicationContext, setCommonI18NService, setKeyGenerator, setModelService, setUserNetCheckingStrategy, setUserService
-
-
-
-
Method Detail
-
createCartInternal
protected CartModel createCartInternal()
Description copied from class:DefaultCartFactoryCreates a newCartModelinstance without persisting it.- Overrides:
createCartInternalin classDefaultCartFactory- Returns:
CartModel- a fully initialized, not persistedCartModelinstance
-
getNetGrossStrategy
protected NetGrossStrategy getNetGrossStrategy()
-
setNetGrossStrategy
public void setNetGrossStrategy(NetGrossStrategy netGrossStrategy)
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService siteService)
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService service)
-
getGuidKeyGenerator
protected KeyGenerator getGuidKeyGenerator()
-
setGuidKeyGenerator
public void setGuidKeyGenerator(KeyGenerator guidKeyGenerator)
-
-