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.
Currently the SPI method
MonetaryAmountFactoryProvider.createMonetaryAmountFactory();does not take any arguments, but creating aMonetaryAmountFactoryand mapping parameters passed to theMonetaryAmountFactoryQueryis clearly a respoinsibility of the provider implementation. Currently this work must be done by theMonetaryAmountsSingletonQuerySpi, which does not know all implementations.