Class CurrencyConverterFactory
java.lang.Object
com.truebubo.maniflow.money.CurrencyConverterFactory
Used for providing a way for all the applications to use the same converter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CurrencyConverter
Lazily returns a currency converterstatic void
setConvertor
(CurrencyConverter converter) Sets a custom converter from outside
-
Constructor Details
-
CurrencyConverterFactory
public CurrencyConverterFactory()
-
-
Method Details
-
getConverter
Lazily returns a currency converter- Returns:
- Reused or new converter
-
setConvertor
Sets a custom converter from outside- Parameters:
converter
- Custom converter
-