Package com.ptc.mvc.util
Class ResourceBundleClientMessageSource
java.lang.Object
com.ptc.mvc.util.ResourceBundleClientMessageSource
- All Implemented Interfaces:
ClientMessageSource,org.springframework.context.MessageSource
A message source that knows the current client locale. The client locale is retrieved from the
Supported API: true
Extendable: false
SessionHelper Supported API: true
Extendable: false
-
Constructor Summary
ConstructorsConstructorDescriptionResourceBundleClientMessageSource(String resourceBundle)
Supported API: true -
Method Summary
Modifier and TypeMethodDescriptionThe name of the resource bundle that this source gets messages from
Supported API: truegetMessage(String code) getMessage(String code, Object[] args) For detailed description check:ClientMessageSource.getMessage(String, Object[])
Supported API: truevoidsetBaseName(String baseName) Set the base name for this MessageSource
Supported API: true
-
Constructor Details
-
ResourceBundleClientMessageSource
Supported API: true- Parameters:
resourceBundle-
-
-
Method Details
-
getBaseName
The name of the resource bundle that this source gets messages from
Supported API: true- Returns:
- String
- See Also:
-
setBaseName
Set the base name for this MessageSource
Supported API: true- Parameters:
baseName-
-
getMessage
- Specified by:
getMessagein interfaceClientMessageSource- Parameters:
code- The code to use to look up the locale
-
getMessage
For detailed description check:ClientMessageSource.getMessage(String, Object[])
Supported API: true- Specified by:
getMessagein interfaceClientMessageSource- Parameters:
code- The code to use to look up the localeargs- The optional arguments to use- Returns:
- The message
-