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 Summary
Modifier and TypeMethodDescriptionDeprecated.Obtains theCurrencyContext
for serialization, usually set fromsetCurrencyContext(CurrencyContext)
although not requiredvoid
setCurrencyContext
(CurrencyContext context) Deprecated.Sets up the currency context during mapping from the repository domain.
-
Method Details
-
setCurrencyContext
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
Deprecated.Obtains theCurrencyContext
for serialization, usually set fromsetCurrencyContext(CurrencyContext)
although not required- Returns:
- the runtime currency context for this object
- See Also:
-