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 Stringdefault StringgetFromLocaleWithDefault(String localeEntry, String defText) getLocalSpecificEntry(String source) default StringgetWithLocaleInitIfNeeded(String localeName, String existing) default booleanbooleandefault voidnotifyExternalChange(String propertiesFile) Report a change in the file system that has occurred in the directory this locale represents, ignored by no locale handler.voidvoidsetLocalSpecificEntry(String source, String newValue) default voidsetSaveNotificationConsumer(BiConsumer<Path, String> listener)
-
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
-
getFromLocaleOrUseSource
-
notifyExternalChange
Report a change in the file system that has occurred in the directory this locale represents, ignored by no locale handler. -
isDirty
-
setSaveNotificationConsumer
-