Package dev.orne.i18n.context
package dev.orne.i18n.context
I18N contexts system.
Provides the internal classes of the I18N context system.
Mainly I18nContextProviderStrategy, I18nContextProvider
and I18nContext and their implementations.
This classes should be used when implementing new context providers or when configuring programmatically the I18N system.
- Since:
- 0.1, 2023-11
-
ClassDescriptionAbstract implementation of
I18nContextProvider.AbstractI18nContextProvider.BuilderImpl<T extends AbstractI18nContextProvider,B extends AbstractI18nContextProvider.BuilderImpl<T, B>> Abstract builder of I18N context provider instances.Default implementation ofI18nContext.Dummy implementation ofI18nResourcesthat always returns thedefaultMessage, formated with passed arguments.Implementation ofI18nResourcesbased onResourceBundle.Utility class with I18N configuration constants and retrieval methods.Interface for I18N context.Provider ofI18nContextinstances.Builder of I18N context provider instances.Interface for configuration classes that need to set I18N context provider instances to use.The I18N context provider registry.SPI based I18N context provider factory.Implementation ofI18nContextProviderthat shares a singleI18nContextinstance for all threads.Interface forSharedI18nContextProviderinstance builders.SharedI18nContextProvider.BuilderImpl<T extends SharedI18nContextProvider,B extends SharedI18nContextProvider.BuilderImpl<T, B>> Builder ofSharedI18nContextProviderinstances.Factory forSharedI18nContextProviderinstances.Implementation ofI18nContextProviderthat provides a differentI18nContextfor each thread.Interface forThreadI18nContextProviderinstance builders.ThreadI18nContextProvider.BuilderImpl<T extends ThreadI18nContextProvider,B extends ThreadI18nContextProvider.BuilderImpl<T, B>> Abstract builder ofThreadI18nContextProviderinstances.Factory forThreadI18nContextProviderinstances.