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 ofI18nResources
that always returns thedefaultMessage
, formated with passed arguments.Implementation ofI18nResources
based onResourceBundle
.Utility class with I18N configuration constants and retrieval methods.Interface for I18N context.Provider ofI18nContext
instances.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 ofI18nContextProvider
that shares a singleI18nContext
instance for all threads.Interface forSharedI18nContextProvider
instance builders.SharedI18nContextProvider.BuilderImpl<T extends SharedI18nContextProvider,B extends SharedI18nContextProvider.BuilderImpl<T, B>> Builder ofSharedI18nContextProvider
instances.Factory forSharedI18nContextProvider
instances.Implementation ofI18nContextProvider
that provides a differentI18nContext
for each thread.Interface forThreadI18nContextProvider
instance builders.ThreadI18nContextProvider.BuilderImpl<T extends ThreadI18nContextProvider,B extends ThreadI18nContextProvider.BuilderImpl<T, B>> Abstract builder ofThreadI18nContextProvider
instances.Factory forThreadI18nContextProvider
instances.