public abstract class BaseMonetaryAmountsSingletonSpi extends Object implements MonetaryAmountsSingletonSpi
Monetary singleton. It
should load and manage (including contextual behavior), if needed) the different registered
MonetaryAmountFactory instances.| Constructor and Description |
|---|
BaseMonetaryAmountsSingletonSpi() |
| Modifier and Type | Method and Description |
|---|---|
Collection<MonetaryAmountFactory<?>> |
getAmountFactories()
Get the currently registered
MonetaryAmount implementation classes. |
MonetaryAmountFactory<?> |
getDefaultAmountFactory()
Access the default
MonetaryAmountFactory. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAmountFactory, getAmountTypes, getDefaultAmountTypepublic BaseMonetaryAmountsSingletonSpi()
public MonetaryAmountFactory<?> getDefaultAmountFactory()
MonetaryAmountFactory.getDefaultAmountFactory in interface MonetaryAmountsSingletonSpiMonetaryAmount type corresponding, never null.MonetaryException - if no MonetaryAmountFactoryProviderSpi is available, or no
MonetaryAmountFactoryProviderSpi targeting the configured default
MonetaryAmount type.Monetary.getDefaultAmountType()public Collection<MonetaryAmountFactory<?>> getAmountFactories()
MonetaryAmount implementation classes.getAmountFactories in interface MonetaryAmountsSingletonSpiSet if registered MonetaryAmount implementations, never
null.Copyright © 2012–2020 JavaMoney. All rights reserved.