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 |
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
String getMessage(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 setSet<MutableMessageSource> getMessageSources()
void setMessageSources(Set<MutableMessageSource> availableMessageSources)
availableMessageSources
- the availableMessageSources to setCopyright © 2024 OpenMRS Inc.. All rights reserved.