Package de.hybris.platform.order
Interface CartFactory
- All Known Subinterfaces:
B2BCartFactory,CartFactory
- All Known Implementing Classes:
CommerceCartFactory,DefaultB2BCartFactory,DefaultCartFactory,DefaultSelectiveCartFactory,InMemoryCartFactory
public interface CartFactory
Factory for the cart type. Implementation should create
CartModel. Default implementation for instance (
DefaultCartFactory ), creates an instance of CartModel that 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
-
Method Details
-
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.
-