Class ComponentService
java.lang.Object
com.vmware.vipclient.i18n.messages.service.BaseService
com.vmware.vipclient.i18n.messages.service.ComponentService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Data Transfer Object (DTO) for localized messages retrieved from cache. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getMessages(Iterator<Locale> fallbackLocalesIter) Deprecated.CallsgetTranslations(Iterator)using the pre-configured locale fallback queue.getTranslations(Iterator<Locale> fallbackLocalesIter) Gets messages from cache.booleanMethods inherited from class com.vmware.vipclient.i18n.messages.service.BaseService
doLocaleMatching, proceed
-
Constructor Details
-
ComponentService
-
-
Method Details
-
getMessages
Deprecated.UsegetTranslations(). -
getMessages
Deprecated. -
getTranslations
CallsgetTranslations(Iterator)using the pre-configured locale fallback queue.- Returns:
- A TranslationsDTO whose message map is one of the items in the following priority-ordered list:
- The messages in the requested locale
- The messages in a fallback locale
- The source messages
- An empty map
-
getTranslations
Gets messages from cache. The cache is refreshed if the set of localized messages is expired or not found.- Parameters:
fallbackLocalesIter- The locale fallback queue iterator to be used on failure. If null, there will be no fallback mechanism on failure so the message map will be empty.- Returns:
- A TranslationsDTO whose data map is one of the following:
- The messages in the requested locale
- The messages in a fallback locale
- The source messages
- An empty map
-
isComponentAvailable
public boolean isComponentAvailable()
-
getTranslations().