public abstract class BaseMonetaryAmountsSingletonSpi extends Object implements javax.money.spi.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<javax.money.MonetaryAmountFactory<?>> |
getAmountFactories()
Get the currently registered
MonetaryAmount implementation classes. |
javax.money.MonetaryAmountFactory<?> |
getDefaultAmountFactory()
Access the default
MonetaryAmountFactory . |
public BaseMonetaryAmountsSingletonSpi()
public javax.money.MonetaryAmountFactory<?> getDefaultAmountFactory()
MonetaryAmountFactory
.getDefaultAmountFactory
in interface javax.money.spi.MonetaryAmountsSingletonSpi
MonetaryAmount
type corresponding, never null
.javax.money.MonetaryException
- if no MonetaryAmountFactoryProviderSpi
is available, or no
MonetaryAmountFactoryProviderSpi
targeting the configured default
MonetaryAmount
type.Monetary.getDefaultAmountType()
public Collection<javax.money.MonetaryAmountFactory<?>> getAmountFactories()
MonetaryAmount
implementation classes.getAmountFactories
in interface javax.money.spi.MonetaryAmountsSingletonSpi
Set
if registered MonetaryAmount
implementations, never
null
.Copyright © 2012-2015 JavaMoney. All Rights Reserved.