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.
Allows a repository domain object to contribute its own currency information to the
MonetaryMapperMember
when initializing MonetaryAmount
s on the business domain.
Results from implementations of this can be further overridden with additional runtime
considerations from CurrencyContextProvider
implementations.
Intended usage is on repository domain that maintains its own currency. This automatically flows
into the CompositeCurrencyContextProvider
to set a CurrencyContext
in the event
that the mapping service domain implements CurrencyContextAware
.
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Method Summary
Methods inherited from interface javax.money.CurrencySupplier
getCurrency