Package dev.orne.i18n.context
Class SharedI18nContextProvider.BuilderImpl<T extends SharedI18nContextProvider,B extends SharedI18nContextProvider.BuilderImpl<T,B>>
java.lang.Object
dev.orne.i18n.context.AbstractI18nContextProvider.BuilderImpl<T,B>
dev.orne.i18n.context.SharedI18nContextProvider.BuilderImpl<T,B>
- Type Parameters:
T
- The type of I18N context provider build by the builder.B
- The type of builder returned for method chaining.
- All Implemented Interfaces:
I18nContextProvider.Builder
,SharedI18nContextProvider.Builder
- Enclosing class:
- SharedI18nContextProvider
protected static class SharedI18nContextProvider.BuilderImpl<T extends SharedI18nContextProvider,B extends SharedI18nContextProvider.BuilderImpl<T,B>>
extends AbstractI18nContextProvider.BuilderImpl<T,B>
implements SharedI18nContextProvider.Builder
Builder of
SharedI18nContextProvider
instances.- Since:
- 0.1
- Version:
- 1.0, 2024-09
- Author:
- (w) Iker Hernaez
-
Field Summary
Fields inherited from class dev.orne.i18n.context.AbstractI18nContextProvider.BuilderImpl
availableLocales, defaultI18nResources, defaultLocaleSupplier, i18nResources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull SharedI18nContextProvider
build()
Builds an immutable I18N context provider instance with the current configuration of this builder.Methods inherited from class dev.orne.i18n.context.AbstractI18nContextProvider.BuilderImpl
addI18nResources, configure, configureAlternativeI18nResources, configureAvailableLocalesSupplier, configureDefaultI18nResources, configureDefaultLocaleSupplier, setAvailableLocales, setDefaultI18nResources, setDefaultLocaleSupplier
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.orne.i18n.context.SharedI18nContextProvider.Builder
addI18nResources, configure, configure, setAvailableLocales, setDefaultI18nResources, setDefaultLocaleSupplier
-
Constructor Details
-
BuilderImpl
protected BuilderImpl()Creates a new instance.
-
-
Method Details
-
build
Builds an immutable I18N context provider instance with the current configuration of this builder. Further modifications to the builder will have no effect in the returned instance.- Specified by:
build
in interfaceI18nContextProvider.Builder
- Specified by:
build
in interfaceSharedI18nContextProvider.Builder
- Returns:
- The I18N context provider instance.
-