Class IridaPluginMessageSource
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.util.IridaPluginMessageSource
-
- All Implemented Interfaces:
org.springframework.context.HierarchicalMessageSource
,org.springframework.context.MessageSource
public class IridaPluginMessageSource extends java.lang.Object implements org.springframework.context.HierarchicalMessageSource
AMessageSource
used to store and search throughMessageSource
s for IRIDA Plugins.
-
-
Constructor Summary
Constructors Constructor Description IridaPluginMessageSource(java.util.List<org.springframework.context.MessageSource> pluginSources)
Builds a newIridaPluginMessageSource
which makes use of the given sources.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage, java.util.Locale locale)
java.lang.String
getMessage(java.lang.String code, java.lang.Object[] args, java.util.Locale locale)
java.lang.String
getMessage(org.springframework.context.MessageSourceResolvable resolvable, java.util.Locale locale)
org.springframework.context.MessageSource
getParentMessageSource()
void
setParentMessageSource(org.springframework.context.MessageSource parent)
-
-
-
Constructor Detail
-
IridaPluginMessageSource
public IridaPluginMessageSource(java.util.List<org.springframework.context.MessageSource> pluginSources)
Builds a newIridaPluginMessageSource
which makes use of the given sources.- Parameters:
pluginSources
- A list ofMessageSource
s to use for the plugin message source.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage, java.util.Locale locale)
- Specified by:
getMessage
in interfaceorg.springframework.context.MessageSource
-
getMessage
public java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.util.Locale locale) throws org.springframework.context.NoSuchMessageException
- Specified by:
getMessage
in interfaceorg.springframework.context.MessageSource
- Throws:
org.springframework.context.NoSuchMessageException
-
getMessage
public java.lang.String getMessage(org.springframework.context.MessageSourceResolvable resolvable, java.util.Locale locale) throws org.springframework.context.NoSuchMessageException
- Specified by:
getMessage
in interfaceorg.springframework.context.MessageSource
- Throws:
org.springframework.context.NoSuchMessageException
-
setParentMessageSource
public void setParentMessageSource(org.springframework.context.MessageSource parent)
- Specified by:
setParentMessageSource
in interfaceorg.springframework.context.HierarchicalMessageSource
-
getParentMessageSource
public org.springframework.context.MessageSource getParentMessageSource()
- Specified by:
getParentMessageSource
in interfaceorg.springframework.context.HierarchicalMessageSource
-
-