Package com.thecoderscorner.menu.persist
Class PropertiesLocaleEnabledHandler
java.lang.Object
com.thecoderscorner.menu.persist.PropertiesLocaleEnabledHandler
- All Implemented Interfaces:
LocaleMappingHandler
-
Field Summary
FieldsFields inherited from interface com.thecoderscorner.menu.persist.LocaleMappingHandler
NOOP_IMPLEMENTATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeLocale(Locale locale) getLocalSpecificEntry(String source) booleanvoidputIntoDefaultIfNeeded(String localeName, String existing) voidvoidsetLocalSpecificEntry(String source, String newValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thecoderscorner.menu.persist.LocaleMappingHandler
getFromLocaleWithDefault, getWithLocaleInitIfNeeded
-
Field Details
-
DEFAULT_LOCALE
-
-
Constructor Details
-
Method Details
-
isLocalSupportEnabled
public boolean isLocalSupportEnabled()- Specified by:
isLocalSupportEnabledin interfaceLocaleMappingHandler
-
getLocalSpecificEntry
- Specified by:
getLocalSpecificEntryin interfaceLocaleMappingHandler- Throws:
IllegalArgumentException
-
setLocalSpecificEntry
- Specified by:
setLocalSpecificEntryin interfaceLocaleMappingHandler- Throws:
IllegalArgumentException
-
getEnabledLocales
- Specified by:
getEnabledLocalesin interfaceLocaleMappingHandler
-
changeLocale
- Specified by:
changeLocalein interfaceLocaleMappingHandler- Throws:
IOException
-
saveChanges
public void saveChanges()- Specified by:
saveChangesin interfaceLocaleMappingHandler
-
getUnderlyingMap
- Specified by:
getUnderlyingMapin interfaceLocaleMappingHandler
-
getSafeLoader
-
getCurrentLocale
- Specified by:
getCurrentLocalein interfaceLocaleMappingHandler
-
putIntoDefaultIfNeeded
-