I18nKeyGenerator
which provides a number of helper methods to generate keys.I18nizer
mechanism.LocaleProvider
which uses MgnlContext.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
.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
.Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.