|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Transactional public interface MessageSourceService
Interface for a service which expands on the basic capabilities of a message source.
| Method Summary | |
|---|---|
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. use MutableMessageSource.merge(MutableMessageSource, boolean) |
void |
setActiveMessageSource(MutableMessageSource activeMessageSource)
Sets the message source service which will actually provide services. |
void |
setMessageSources(java.util.Set<MutableMessageSource> availableMessageSources)
|
| Methods inherited from interface org.openmrs.messagesource.MutableMessageSource |
|---|
addPresentation, getLocales, getPresentation, getPresentations, getPresentationsInLocale, merge, removePresentation |
| Methods inherited from interface org.springframework.context.HierarchicalMessageSource |
|---|
getParentMessageSource, setParentMessageSource |
| Methods inherited from interface org.springframework.context.MessageSource |
|---|
getMessage, getMessage, getMessage |
| Method Detail |
|---|
@Transactional(readOnly=true) java.lang.String getMessage(java.lang.String s)
s - message code to retrieve
MessageSource.getMessage(String arg0, Object[] arg1, java.util.Locale arg2)@Transactional(readOnly=true) MutableMessageSource getActiveMessageSource()
void setActiveMessageSource(MutableMessageSource activeMessageSource)
activeMessageSource - the MutableMessageSource to set
void publishProperties(java.util.Properties props,
java.lang.String locale,
java.lang.String namespace,
java.lang.String name,
java.lang.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) java.util.Set<MutableMessageSource> getMessageSources()
void setMessageSources(java.util.Set<MutableMessageSource> availableMessageSources)
availableMessageSources - the availableMessageSources to set
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||