public interface Localizable<T extends Localizable<T>>
Classes which implement this interface are treated as localizable classes. This means that they need to implement the localize(org.springframework.context.MessageSource,
java.util.Locale) method which returns a localized instance of the class.
| Modifier and Type | Method and Description |
|---|---|
T |
localize(org.springframework.context.MessageSource messageSource,
Locale locale)
Localizes the current instance and returns a localized version of the implementing class with respect to the specified
Locale. |
T localize(org.springframework.context.MessageSource messageSource, Locale locale)
Localizes the current instance and returns a localized version of the implementing class with respect to the specified Locale.
messageSource - the message source which translates the i18n codes for the localizationlocale - the specified locale in which the i18n codes are translatedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.