T - the concrete amount type.public interface MonetaryAmountFactoryProviderSpi<T extends MonetaryAmount>
MonetaryAmountsSpi 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
MonetaryAmounts.queryAmountType(MonetaryContext). |
| Modifier and Type | Method and Description |
|---|---|
MonetaryAmountFactory<T> |
createMonetaryAmountFactory()
Access a
MonetaryAmountFactory given the required context. |
java.lang.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. |
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). |
MonetaryAmountFactory<T> createMonetaryAmountFactory()
MonetaryAmountFactory given the required context.MonetaryAmountFactory, or null.java.lang.Class<T> getAmountType()
MonetaryAmountFactory instances provided.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()MonetaryContext getMaximalMonetaryContext()
MonetaryContext supported, for requests that exceed these maximal
capabilities, an ArithmeticException must be thrown.MonetaryContext supported, never nullMonetaryAmountFactoryProviderSpi.QueryInclusionPolicy getQueryInclusionPolicy()
MonetaryAmount implementation types when calling
MonetaryAmounts.queryAmountType(MonetaryContext).true to include this factory into the evaluation.MonetaryAmounts.queryAmountType(MonetaryContext)