T
- the type of Object this I18nKeyGenerator
generates keys for.public interface I18nKeyGenerator<T>
I18nKeyGenerator
is responsible for deriving i18n keys for any given instance of T.AbstractI18nKeyGenerator
Modifier and Type | Method and Description |
---|---|
String[] |
keysFor(String undecoratedResult,
T object,
AnnotatedElement el)
Generates the possible keys for the given
|
String |
messageBundleNameFor(T object)
Deprecated.
since 5.4.5. Will be removed in a future version
|
String[] keysFor(String undecoratedResult, T object, AnnotatedElement el)
undecoratedResult
- the value returned by the undecorated underlying method call. It is generally expected
that this value will be part of the returned keys, such that an object with an explicitly configured key or label
will be translated using that value rather than derived keys.el
- the element being translated - typically a Method
instance.@Deprecated String messageBundleNameFor(T object)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.