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 Object implements CartFactory, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation of the CartFactory
  • Constructor Details

    • DefaultCartFactory

      public DefaultCartFactory()
  • Method Details

    • createCart

      public CartModel createCart()
      Description copied from interface: CartFactory
      Creates a new, implementation dependent CartModel instance.
      Specified by:
      createCart in interface CartFactory
      Returns:
      CartModel - may be persisted or not, it depends on the used implementation. I.e DefaultCartFactory saves the model.
    • createCartInternal

      protected CartModel createCartInternal()
      Creates a new CartModel instance without persisting it.
      Returns:
      CartModel - a fully initialized, not persisted CartModel instance
    • 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:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception