@Transactional public interface MessageSourceService extends MutableMessageSource
| Modifier and Type | Method and Description |
|---|---|
MutableMessageSource |
getActiveMessageSource()
Gets the message source service which is currently providing services.
|
String |
getMessage(String s)
Get the message with the given code from the current user's selected locale.
|
Set<MutableMessageSource> |
getMessageSources() |
void |
publishProperties(Properties props,
String locale,
String namespace,
String name,
String version)
Deprecated.
|
void |
setActiveMessageSource(MutableMessageSource activeMessageSource)
Sets the message source service which will actually provide services.
|
void |
setMessageSources(Set<MutableMessageSource> availableMessageSources) |
addPresentation, getLocales, getPresentation, getPresentations, getPresentationsInLocale, merge, removePresentation@Transactional(readOnly=true) String getMessage(String s)
s - message code to retrieveMessageSource.getMessage(String arg0, Object[] arg1, java.util.Locale arg2)@Transactional(readOnly=true) MutableMessageSource getActiveMessageSource()
void setActiveMessageSource(MutableMessageSource activeMessageSource)
activeMessageSource - the MutableMessageSource to setvoid publishProperties(Properties props, String locale, String namespace, String name, String version)
publishProperties in interface MutableMessageSourceprops - 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)@Transactional(readOnly=true) Set<MutableMessageSource> getMessageSources()
void setMessageSources(Set<MutableMessageSource> availableMessageSources)
availableMessageSources - the availableMessageSources to setCopyright © 2018 OpenMRS LLC.. All Rights Reserved.