Package com.thecoderscorner.menu.persist
Interface LocaleMappingHandler
- All Known Implementing Classes:
NoLocaleEnabledLocalHandler,PropertiesLocaleEnabledHandler,ResourceBundleMappingHandler
public interface LocaleMappingHandler
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeLocale(Locale locale) default StringgetFromLocaleWithDefault(String localeEntry, String defText) getLocalSpecificEntry(String source) default StringgetWithLocaleInitIfNeeded(String localeName, String existing) booleanvoidvoidsetLocalSpecificEntry(String source, String newValue)
-
Field Details
-
NOOP_IMPLEMENTATION
-
-
Method Details
-
isLocalSupportEnabled
boolean isLocalSupportEnabled() -
getLocalSpecificEntry
- Throws:
IllegalArgumentException
-
setLocalSpecificEntry
- Throws:
IllegalArgumentException
-
getEnabledLocales
-
changeLocale
- Throws:
IOException
-
saveChanges
void saveChanges() -
getUnderlyingMap
-
getCurrentLocale
Locale getCurrentLocale() -
getFromLocaleWithDefault
-
getWithLocaleInitIfNeeded
-