Class CartHolder<P extends com.broadleafcommerce.cart.client.domain.Cart>

java.lang.Object
com.broadleafcommerce.cartoperation.domain.CartHolder<P>
All Implemented Interfaces:
Serializable

@Deprecated public class CartHolder<P extends com.broadleafcommerce.cart.client.domain.Cart> extends Object implements Serializable
Deprecated.
in favor of new APIs driven by explicit Cart IDs and not request state
A simple container for a cart. This is intended to be used as a request scoped bean to hold the cart for the duration of the request. At the end of request handling, the cart will be written as a cookie, so it's important to have the request scoped instance contain the latest version of the cart. See CartCookieResponseBodyAdvice.
Author:
Jacob Mitash
See Also:
  • Constructor Details

    • CartHolder

      public CartHolder()
      Deprecated.
  • Method Details

    • getCart

      public P getCart()
      Deprecated.
    • setCart

      public void setCart(P cart)
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object