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 |
---|---|
Set<CurrencyUnit> |
getCurrencies(CurrencyQuery query)
Return a
CurrencyUnit instances matching the given
CurrencyContext . |
default String |
getProviderName()
The unique name of this currency provider instance.
|
default boolean |
isCurrencyAvailable(CurrencyQuery query)
Checks if a
CurrencyUnit instances matching the given
CurrencyContext is available from this provider. |
default String getProviderName()
default boolean isCurrencyAvailable(CurrencyQuery query)
CurrencyUnit
instances matching the given
CurrencyContext
is available from this provider.query
- the CurrencyQuery
containing the parameters determining the query. not null.Set<CurrencyUnit> getCurrencies(CurrencyQuery query)
CurrencyUnit
instances matching the given
CurrencyContext
.query
- the CurrencyQuery
containing the parameters determining the query. not null.CurrencyUnit
s matching, never null.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.