T
- the concrete amount type.public interface MonetaryAmountFactoryProviderSpi<T extends MonetaryAmount>
MonetaryAmountsSingletonSpi
to evaluate the
correct MonetaryAmountFactory
instances.Modifier and Type | Interface and Description |
---|---|
static class |
MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy
Determines how the factory should be considered when querying for matching implementation
types calling
Monetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery) . |
Modifier and Type | Method and Description |
---|---|
MonetaryAmountFactory<T> |
createMonetaryAmountFactory()
Access a
MonetaryAmountFactory given the required context. |
Class<T> |
getAmountType()
Get the concrete amount type created by
MonetaryAmountFactory instances provided. |
MonetaryContext |
getDefaultMonetaryContext()
Returns the default
MonetaryContext used, when no MonetaryContext is
provided. |
default MonetaryContext |
getMaximalMonetaryContext()
Returns the maximal
MonetaryContext supported, for requests that exceed these maximal
capabilities, an ArithmeticException must be thrown. |
default MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy |
getQueryInclusionPolicy()
Method that determines if this factory should be considered for general evaluation of
matching
MonetaryAmount implementation types when calling
Monetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery) . |
default MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy getQueryInclusionPolicy()
MonetaryAmount
implementation types when calling
Monetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
.true
to include this factory into the evaluation.Monetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
Class<T> getAmountType()
MonetaryAmountFactory
instances provided.MonetaryAmountFactory<T> createMonetaryAmountFactory()
MonetaryAmountFactory
given the required context.MonetaryAmountFactory
, or null
.MonetaryContext getDefaultMonetaryContext()
MonetaryContext
used, when no MonetaryContext
is
provided.
The default context is not allowed to exceed the capabilities of the maximal
MonetaryContext
supported.
MonetaryContext
, never null
.getMaximalMonetaryContext()
default MonetaryContext getMaximalMonetaryContext()
MonetaryContext
supported, for requests that exceed these maximal
capabilities, an ArithmeticException
must be thrown.MonetaryContext
supported, never null
Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.