Interface CurrencyProvider
-
- All Superinterfaces:
javax.money.CurrencySupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CurrencyProvider extends javax.money.CurrencySupplier
Allows a repository domain object to contribute its own currency information to the
MonetaryMapperMember
when initializingMonetaryAmount
s on the business domain. Results from implementations of this can be further overridden with additional runtime considerations fromCurrencyContextProvider
implementations.Intended usage is on repository domain that maintains its own currency. This automatically flows into the
CompositeCurrencyContextProvider
to set aCurrencyContext
in the event that the mapping service domain implementsCurrencyContextAware
.- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
MonetaryMapperMember
,CurrencyContextProvider