@FunctionalInterface public interface CurrencyProvider extends javax.money.CurrencySupplier
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
.
MonetaryMapperMember
,
CurrencyContextProvider
Copyright © 2021. All rights reserved.