Package de.hybris.platform.order.impl
Class DefaultCartFactory
- java.lang.Object
-
- de.hybris.platform.order.impl.DefaultCartFactory
-
- All Implemented Interfaces:
CartFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
CommerceCartFactory
public class DefaultCartFactory extends java.lang.Object implements CartFactory, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation of theCartFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultCartFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()CartModelcreateCart()Creates a new, implementation dependentCartModelinstance.protected CartModelcreateCartInternal()Creates a newCartModelinstance without persisting it.voidsetApplicationContext(org.springframework.context.ApplicationContext ctx)voidsetCommonI18NService(CommonI18NService commonI18NService)voidsetKeyGenerator(KeyGenerator keyGenerator)voidsetModelService(ModelService modelService)voidsetUserNetCheckingStrategy(UserNetCheckingStrategy userNetCheckingStrategy)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
createCart
public CartModel createCart()
Description copied from interface:CartFactoryCreates a new, implementation dependentCartModelinstance.- Specified by:
createCartin interfaceCartFactory- Returns:
CartModel- may be persisted or not, it depends on the used implementation. I.eDefaultCartFactorysaves the model.
-
createCartInternal
protected CartModel createCartInternal()
Creates a newCartModelinstance without persisting it.
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
-
setModelService
public void setModelService(ModelService modelService)
-
setUserService
public void setUserService(UserService userService)
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
setUserNetCheckingStrategy
public void setUserNetCheckingStrategy(UserNetCheckingStrategy userNetCheckingStrategy)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
-