java.lang.Object
javax.money.DefaultMonetaryCurrenciesSingletonSpi
- All Implemented Interfaces:
MonetaryCurrenciesSingletonSpi
final class DefaultMonetaryCurrenciesSingletonSpi
extends Object
implements MonetaryCurrenciesSingletonSpi
Factory singleton for
CurrencyUnit instances as provided by the
different registered CurrencyProviderSpi instances.
This class is thread safe.- Version:
- 0.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurrencies(CurrencyQuery query) Access all currencies matching the given query.This default implementation simply returns all providers defined in arbitrary order.Get the names of the currently loaded providers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.money.spi.MonetaryCurrenciesSingletonSpi
getCurrencies, getCurrencies, getCurrency, getCurrency, getCurrency, isCurrencyAvailable, isCurrencyAvailable
-
Constructor Details
-
DefaultMonetaryCurrenciesSingletonSpi
DefaultMonetaryCurrenciesSingletonSpi()
-
-
Method Details
-
getCurrencies
Description copied from interface:MonetaryCurrenciesSingletonSpiAccess all currencies matching the given query.- Specified by:
getCurrenciesin interfaceMonetaryCurrenciesSingletonSpi- Parameters:
query- The currency query, not null.- Returns:
- a set of all currencies found, never null.
-
getDefaultProviderChain
This default implementation simply returns all providers defined in arbitrary order.- Specified by:
getDefaultProviderChainin interfaceMonetaryCurrenciesSingletonSpi- Returns:
- the default provider chain, never null.
- See Also:
-
getProviderNames
Get the names of the currently loaded providers.- Specified by:
getProviderNamesin interfaceMonetaryCurrenciesSingletonSpi- Returns:
- the names of the currently loaded providers, never null.
-