public final class DummyAmountFactoryProvider extends java.lang.Object implements MonetaryAmountFactoryProviderSpi<DummyAmount>
MonetaryAmounts
singleton's delegation
logic.MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy
Constructor and Description |
---|
DummyAmountFactoryProvider() |
Modifier and Type | Method and Description |
---|---|
MonetaryAmountFactory<DummyAmount> |
createMonetaryAmountFactory()
Access a
MonetaryAmountFactory given the required context. |
java.lang.Class<DummyAmount> |
getAmountType()
Get the concrete amount type created by
MonetaryAmountFactory instances provided. |
MonetaryContext |
getDefaultMonetaryContext()
Returns the default
MonetaryContext used, when no MonetaryContext is
provided. |
MonetaryContext |
getMaximalMonetaryContext()
Returns the maximal
MonetaryContext supported, for requests that exceed these maximal
capabilities, an ArithmeticException must be thrown. |
MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy |
getQueryInclusionPolicy()
Method that determines if this factory should be considered for general evaluation of
matching
MonetaryAmount implementation types when calling
MonetaryAmounts.queryAmountType(MonetaryContext) . |
public MonetaryAmountFactory<DummyAmount> createMonetaryAmountFactory()
MonetaryAmountFactoryProviderSpi
MonetaryAmountFactory
given the required context.createMonetaryAmountFactory
in interface MonetaryAmountFactoryProviderSpi<DummyAmount>
MonetaryAmountFactory
, or null
.public java.lang.Class<DummyAmount> getAmountType()
MonetaryAmountFactoryProviderSpi
MonetaryAmountFactory
instances provided.getAmountType
in interface MonetaryAmountFactoryProviderSpi<DummyAmount>
public MonetaryContext getMaximalMonetaryContext()
MonetaryAmountFactoryProviderSpi
MonetaryContext
supported, for requests that exceed these maximal
capabilities, an ArithmeticException
must be thrown.getMaximalMonetaryContext
in interface MonetaryAmountFactoryProviderSpi<DummyAmount>
MonetaryContext
supported, never null
public MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy getQueryInclusionPolicy()
MonetaryAmountFactoryProviderSpi
MonetaryAmount
implementation types when calling
MonetaryAmounts.queryAmountType(MonetaryContext)
.getQueryInclusionPolicy
in interface MonetaryAmountFactoryProviderSpi<DummyAmount>
true
to include this factory into the evaluation.MonetaryAmounts.queryAmountType(MonetaryContext)
public MonetaryContext getDefaultMonetaryContext()
MonetaryAmountFactoryProviderSpi
MonetaryContext
used, when no MonetaryContext
is
provided.
The default context is not allowed to exceed the capabilities of the maximal
MonetaryContext
supported.
getDefaultMonetaryContext
in interface MonetaryAmountFactoryProviderSpi<DummyAmount>
MonetaryContext
, never null
.MonetaryAmountFactoryProviderSpi.getMaximalMonetaryContext()