Class MessageSourceBridge

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,​java.lang.String>

    public class MessageSourceBridge
    extends java.util.AbstractMap<java.lang.String,​java.lang.String>
    This class wraps an MessageSource and exposes it through the Map API so it can be easily accessed from JSF.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> entrySet()  
      boolean equals​(java.lang.Object o)  
      java.lang.String get​(java.lang.Object key)  
      int hashCode()  
      void setMessageSourceAccessor​(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor)  
      java.lang.String toString()  
      • Methods inherited from class java.util.AbstractMap

        clear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • MessageSourceBridge

        public MessageSourceBridge​(org.springframework.context.MessageSource messageSource)
      • MessageSourceBridge

        public MessageSourceBridge()
      • MessageSourceBridge

        public MessageSourceBridge​(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor)
    • Method Detail

      • get

        public java.lang.String get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<java.lang.String,​java.lang.String>
        Overrides:
        get in class java.util.AbstractMap<java.lang.String,​java.lang.String>
      • entrySet

        @NonNull
        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​java.lang.String>
        Specified by:
        entrySet in class java.util.AbstractMap<java.lang.String,​java.lang.String>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map<java.lang.String,​java.lang.String>
        Overrides:
        equals in class java.util.AbstractMap<java.lang.String,​java.lang.String>
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map<java.lang.String,​java.lang.String>
        Overrides:
        hashCode in class java.util.AbstractMap<java.lang.String,​java.lang.String>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractMap<java.lang.String,​java.lang.String>
      • setMessageSourceAccessor

        public void setMessageSourceAccessor​(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor)