Package dev.orne.i18n.context
Interface I18nContextProviderFactory
- All Known Implementing Classes:
SharedI18nContextProvider.Factory
,ThreadI18nContextProvider.Factory
@API(status=EXPERIMENTAL,
since="0.1")
public interface I18nContextProviderFactory
SPI based I18N context provider factory.
- Since:
- 0.1
- Version:
- 1.0, 2024-01
- Author:
- (w) Iker Hernaez
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NotNull I18nContextProvider
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.
-
Method Details
-
getType
Returns the code of I18N context provider strategy type this instance creates.Used to locate service provider based on configuration value.
- Returns:
- The context provider strategy type code.
- See Also:
-
create
Creates and configures a new I18N context provider based on the specified configuration.- Parameters:
config
- The I18N configuration.- Returns:
- The I18N context provider.
- Throws:
I18nConfigurationException
- If the configuration is not valid.
-