Class MessageSourceBridge
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.String>
-
- org.joinfaces.autoconfigure.javaxfaces.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 anMessageSource
and exposes it through theMap API
so it can be easily accessed from JSF.
-
-
Constructor Summary
Constructors Constructor Description MessageSourceBridge()
MessageSourceBridge(org.springframework.context.MessageSource messageSource)
MessageSourceBridge(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor)
-
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
-
-
-
-
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 interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
get
in classjava.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 interfacejava.util.Map<java.lang.String,java.lang.String>
- Specified by:
entrySet
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
equals
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
hashCode
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
-
setMessageSourceAccessor
public void setMessageSourceAccessor(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor)
-
-