public interface CurrencyProviderSpi
Bootstrap
, which allows to
register/provide additional currencies into the system automatically on
startup. The implementation is allowed to be implemented in y contextual way,
so depending on the runtime context, different currencies may be available.Modifier and Type | Method and Description |
---|---|
CurrencyUnit |
getCurrencyUnit(java.util.Locale locale)
Return a (current)
CurrencyUnit matching the given (country)
Locale . |
CurrencyUnit |
getCurrencyUnit(java.lang.String currencyCode)
Return a (current)
CurrencyUnit matching the given currency code. |
CurrencyUnit getCurrencyUnit(java.util.Locale locale)
CurrencyUnit
matching the given (country)
Locale
.locale
- the country Locale
. not null.CurrencyUnit
, or null, if no such unit
is provided by this provider.CurrencyUnit getCurrencyUnit(java.lang.String currencyCode)
CurrencyUnit
matching the given currency code.currencyCode
- the currency code. not null.CurrencyUnit
, or null, if no such unit
is provided by this provider.