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 aMonetaryAmountFactory
and mapping parameters passed to theMonetaryAmountFactoryQuery
is clearly a respoinsibility of the provider implementation. Currently this work must be done by theMonetaryAmountsSingletonQuerySpi
, which does not know all implementations.