public abstract class BaseCurrencyProviderSpi extends Object implements javax.money.spi.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.Constructor and Description |
---|
BaseCurrencyProviderSpi() |
Modifier and Type | Method and Description |
---|---|
String |
getProviderName()
The unique name of this currency provider instance.
|
boolean |
isCurrencyAvailable(javax.money.CurrencyQuery query)
CHecks if a
CurrencyUnit instances matching the given
CurrencyContext is available from this provider. |
public BaseCurrencyProviderSpi()
public String getProviderName()
getProviderName
in interface javax.money.spi.CurrencyProviderSpi
public boolean isCurrencyAvailable(javax.money.CurrencyQuery query)
CurrencyUnit
instances matching the given
CurrencyContext
is available from this provider.isCurrencyAvailable
in interface javax.money.spi.CurrencyProviderSpi
query
- the CurrencyQuery
containing the parameters determining the query. not null.Copyright © 2012-2015 JavaMoney. All Rights Reserved.