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
MonetaryMapperMemberwhen initializingMonetaryAmounts on the business domain. Results from implementations of this can be further overridden with additional runtime considerations fromCurrencyContextProviderimplementations.Intended usage is on repository domain that maintains its own currency. This automatically flows into the
CompositeCurrencyContextProviderto set aCurrencyContextin the event that the mapping service domain implementsCurrencyContextAware.- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
MonetaryMapperMember,CurrencyContextProvider