jsr354-api
jsr354-api copied to clipboard
MonetaryAmountFactoryProvider should allow to pass an instance of MonetaryAmountFactoryQuery
Currently the SPI method MonetaryAmountFactoryProvider.createMonetaryAmountFactory(); does not take any arguments, but creating a MonetaryAmountFactory and mapping parameters passed to the MonetaryAmountFactoryQuery is clearly a respoinsibility of the provider implementation. Currently this work must be done by the MonetaryAmountsSingletonQuerySpi, which does not know all implementations.