I18nKeyGenerator
which provides a number of helper methods to generate keys.I18nizer
mechanism.LocaleProvider
which uses Context.getLocale()
to provide the current Locale.I18nKeyGenerator#keysFor(String, T, java.lang.reflect.AnnotatedElement)
.Decorator
which delegates to another only for methods accepted by the given Predicate
.LocaleProvider
provider that simply returns the Locale it was passed in its constructor.GeneratorResult
s for a given Locale.I18nKeyGenerator
s corresponding to the parent objects of the given object.I18nParentable
interface
when the object was decorated by I18nizer
.getId()
or getName()
on a root object of unknown type.I18nKeyGenerator
s corresponding to the given object.I18nParentable
interface
when the object was decorated by I18nizer
.I18nParentable
hierarchy.I18nKeyGenerator
s corresponding to the root object of the given object.I18nKeyGenerator
is responsible for deriving i18n keys for any given instance of T.I18nKeyGenerator
for object annotated with I18nable
.Decorator
which decorates methods by delegating to the given TranslationService
.AbstractI18nKeyGenerator.keysFor(String, Object, java.lang.reflect.AnnotatedElement)
, which sets
the undecoratedResult value if it is not null, and delegates to AbstractI18nKeyGenerator.keysFor(java.util.List, Object, java.lang.reflect.AnnotatedElement)
.TranslationService
.Locale
objects.Predicate
which matches method where the method itself is annotated with the given annotation.I18nKeyGenerator
which essentially just returns the undecorated value,
and warns that no I18nKeyGenerator was set for the given object.Predicate
which matches methods which are "getter"s where the return value's type is annotated with the given annotation.TranslationService
and LocaleProvider
for getting messages based on a single, well-known, key.I18nizer
which keeps track of translation attempts and figures out new/replacement keys (for example if a configured key exists, it can suggest to remove the configuration and replace the key with a generated one).GenerateTranslationFilesImpl
.DefaultMessageBundlesLoader
.TranslationServiceImpl.TranslationServiceImpl(javax.inject.Provider)
instead.Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.