Package de.hybris.platform.order
Interface CartFactory
-
- All Known Subinterfaces:
B2BCartFactory,CartFactory
- All Known Implementing Classes:
CommerceCartFactory,DefaultB2BCartFactory,DefaultCartFactory,DefaultSelectiveCartFactory,InMemoryCartFactory
public interface CartFactoryFactory for the cart type. Implementation should createCartModel. Default implementation for instance (DefaultCartFactory), creates an instance ofCartModelthat is supposed to be the session cart. So it populates the user and currency fields according to the current session status and persists the created model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CartModelcreateCart()Creates a new, implementation dependentCartModelinstance.
-
-
-
Method Detail
-
createCart
CartModel createCart()
Creates a new, implementation dependentCartModelinstance.- Returns:
CartModel- may be persisted or not, it depends on the used implementation. I.eDefaultCartFactorysaves the model.
-
-