public class NegativityTranslationProviderFactory extends Object implements TranslationProviderFactory
Constructor and Description |
---|
NegativityTranslationProviderFactory(Path messagesDir,
String... bundles) |
Modifier and Type | Method and Description |
---|---|
@Nullable TranslationProvider |
createFallbackTranslationProvider()
Creates the
TranslationProvider that will be used as fallback,
in cases where the normally used TranslationProvider is
not available or does not return a message (returns null ). |
@Nullable TranslationProvider |
createTranslationProvider(String language) |
public @Nullable TranslationProvider createTranslationProvider(String language)
createTranslationProvider
in interface TranslationProviderFactory
public @Nullable TranslationProvider createFallbackTranslationProvider()
TranslationProviderFactory
TranslationProvider
that will be used as fallback,
in cases where the normally used TranslationProvider
is
not available or does not return a message (returns null
).
If this fallback provider also returns no message then the message key is returned, as last resort.
createFallbackTranslationProvider
in interface TranslationProviderFactory