Package dev.orne.i18n.context
Class ThreadI18nContextProvider.Factory
java.lang.Object
dev.orne.i18n.context.ThreadI18nContextProvider.Factory
- All Implemented Interfaces:
I18nContextProviderFactory
- Enclosing class:
- ThreadI18nContextProvider
public static class ThreadI18nContextProvider.Factory
extends Object
implements I18nContextProviderFactory
Factory for
ThreadI18nContextProvider
instances.- Since:
- 0.1
- Version:
- 1.0, 2024-08
- Author:
- (w) Iker Hernaez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ThreadI18nContextProvider
create
(@NotNull Properties config) Creates and configures a new I18N context provider based on the specified configuration.@NotNull String
getType()
Returns the code of I18N context provider strategy type this instance creates.
-
Constructor Details
-
Factory
public Factory()Creates a new instance.
-
-
Method Details
-
getType
Returns the code of I18N context provider strategy type this instance creates.Used to locate service provider based on configuration value.
- Specified by:
getType
in interfaceI18nContextProviderFactory
- Returns:
- The context provider strategy type code.
- See Also:
-
create
Creates and configures a new I18N context provider based on the specified configuration.- Specified by:
create
in interfaceI18nContextProviderFactory
- Parameters:
config
- The I18N configuration.- Returns:
- The I18N context provider.
-