JavaMoney / jsr354-api

JSR 354 - Money and Currency API
http://javamoney.org
Apache License 2.0
357 stars 79 forks source link

MonetaryAmountFactoryProvider should allow to pass an instance of MonetaryAmountFactoryQuery #65

Open atsticks opened 7 years ago

atsticks commented 7 years ago

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.