Class IridaPluginMessageSource

  • All Implemented Interfaces:
    org.springframework.context.HierarchicalMessageSource, org.springframework.context.MessageSource

    public class IridaPluginMessageSource
    extends java.lang.Object
    implements org.springframework.context.HierarchicalMessageSource
    A MessageSource used to store and search through MessageSources for IRIDA Plugins.
    • 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IridaPluginMessageSource

        public IridaPluginMessageSource​(java.util.List<org.springframework.context.MessageSource> pluginSources)
        Builds a new IridaPluginMessageSource which makes use of the given sources.
        Parameters:
        pluginSources - A list of MessageSources 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 interface org.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 interface org.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 interface org.springframework.context.MessageSource
        Throws:
        org.springframework.context.NoSuchMessageException
      • setParentMessageSource

        public void setParentMessageSource​(org.springframework.context.MessageSource parent)
        Specified by:
        setParentMessageSource in interface org.springframework.context.HierarchicalMessageSource
      • getParentMessageSource

        public org.springframework.context.MessageSource getParentMessageSource()
        Specified by:
        getParentMessageSource in interface org.springframework.context.HierarchicalMessageSource