- All Implemented Interfaces:
- SimpleCountryService
@Service(value="simpleCountryService")
public class JavaLocaleSimpleCountryService
extends Object
implements SimpleCountryService
CountryService implementation (for simplified Wicket mechanism) based on Locale.getAvailableLocales() from JDK.
Manual map caching could be a premature optimisation. Maybe it is worth to use @Cacheable from Spring or
some other mechanism?
TODO: Add sorting by the country name instead of code and rewrite it using data from http://cldr.unicode.org/
(and maybe https://wicket.apache.org/guide/guide/chapter13.html#chapter13_4 for Wicket)
- Author:
- Marcin ZajÄ…czkowski, 2013-11-19