Package dev.orne.i18n.context
Interface I18nContextProvider.Configurer
- All Known Implementing Classes:
I18nSpringConfiguration
,I18nSpringWebConfiguration
- Enclosing interface:
- I18nContextProvider
@API(status=EXPERIMENTAL,
since="0.1")
public static interface I18nContextProvider.Configurer
Interface for configuration classes that need to set I18N context
provider instances to use.
- Since:
- 0.1
- Version:
- 1.0, 2024-08
- Author:
- (w) Iker Hernaez
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
setI18nConfiguration
(@NotNull ClassLoader cl, @NotNull Properties config) Sets the I18N configuration for the specified class loader.default void
setI18nConfiguration
(@NotNull Properties config) Sets the I18N configuration for the current thread's context class loader.default void
setI18nContextProvider
(@NotNull I18nContextProvider provider) Sets the I18N context provider for the current thread's context class loader.default void
setI18nContextProvider
(@NotNull ClassLoader cl, @NotNull I18nContextProvider provider) Sets the I18N context provider for the specified class loader.
-
Method Details
-
setI18nConfiguration
Sets the I18N configuration for the current thread's context class loader.- Parameters:
config
- The I18N configuration.
-
setI18nConfiguration
default void setI18nConfiguration(@NotNull @NotNull ClassLoader cl, @NotNull @NotNull Properties config) Sets the I18N configuration for the specified class loader.- Parameters:
cl
- The class loader to configure.config
- The I18N configuration.
-
setI18nContextProvider
Sets the I18N context provider for the current thread's context class loader.- Parameters:
provider
- The I18N context provider.
-
setI18nContextProvider
default void setI18nContextProvider(@NotNull @NotNull ClassLoader cl, @NotNull @NotNull I18nContextProvider provider) Sets the I18N context provider for the specified class loader.- Parameters:
cl
- The class loader.provider
- The I18N context provider.
-