Interface CurrencyContextAware


@Deprecated public interface CurrencyContextAware
Deprecated.
Allows service domain objects to indicate that they have monetary fields or methods that operate with monetary fields that rely on a currency to be established. This allows service domain objects to contribute their own CurrencyUnit that might be different than the system currency.
Author:
Phillip Verheyden (phillipuniverse)
  • Method Details

    • setCurrencyContext

      void setCurrencyContext(@NonNull CurrencyContext context)
      Deprecated.
      Sets up the currency context during mapping from the repository domain. This is primarily utilized when mapping a repository domain into the service domain
      Parameters:
      context - the context containing the Currency
      See Also:
      • com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyContextProvider
      • com.broadleafcommerce.data.tracking.core.mapping.money.CurrencyProvider
    • getCurrencyContext

      @Nullable CurrencyContext getCurrencyContext()
      Deprecated.
      Obtains the CurrencyContext for serialization, usually set from setCurrencyContext(CurrencyContext) although not required
      Returns:
      the runtime currency context for this object
      See Also: