Class 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 the CartFactory
    • Constructor Detail

      • DefaultCartFactory

        public DefaultCartFactory()
    • Method Detail

      • 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 java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception