@Transactional(readOnly=true) public interface MessageSourceService extends MutableMessageSource
Modifier and Type | Method and Description |
---|---|
MutableMessageSource |
getActiveMessageSource()
Gets the message source service which is currently providing services.
|
java.lang.String |
getMessage(java.lang.String s)
Get the message with the given code from the current user's selected locale.
|
java.util.Set<MutableMessageSource> |
getMessageSources() |
void |
publishProperties(java.util.Properties props,
java.lang.String locale,
java.lang.String namespace,
java.lang.String name,
java.lang.String version)
Deprecated.
|
void |
setActiveMessageSource(MutableMessageSource activeMessageSource)
Sets the message source service which will actually provide services.
|
void |
setMessageSources(java.util.Set<MutableMessageSource> availableMessageSources) |
addPresentation, getLocales, getPresentation, getPresentations, getPresentationsInLocale, merge, removePresentation
java.lang.String getMessage(java.lang.String s)
s
- message code to retrieveMessageSource.getMessage(String arg0, Object[] arg1, java.util.Locale arg2)
MutableMessageSource getActiveMessageSource()
void setActiveMessageSource(MutableMessageSource activeMessageSource)
activeMessageSource
- the MutableMessageSource
to setvoid publishProperties(java.util.Properties props, java.lang.String locale, java.lang.String namespace, java.lang.String name, java.lang.String version)
publishProperties
in interface MutableMessageSource
props
- key/value properties for the messageslocale
- locale in which the messages are expressednamespace
- namespace within which the properties are valid ("" for generic, "module"
for modules, etc)name
- unique name for the properties within the namespaceversion
- version of the propertiespublishProperties(Properties, String,
String, String, String)
java.util.Set<MutableMessageSource> getMessageSources()
void setMessageSources(java.util.Set<MutableMessageSource> availableMessageSources)
availableMessageSources
- the availableMessageSources to setCopyright © 2018 OpenMRS Inc.. All Rights Reserved.