Package org.joinfaces.i18n
Class MessageSourceBridge
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
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionMessageSourceBridge
(org.springframework.context.MessageSource messageSource) MessageSourceBridge
(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
entrySet()
boolean
int
hashCode()
void
setMessageSourceAccessor
(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor) 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 Details
-
MessageSourceBridge
public MessageSourceBridge(org.springframework.context.MessageSource messageSource) -
MessageSourceBridge
public MessageSourceBridge() -
MessageSourceBridge
public MessageSourceBridge(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor)
-
-
Method Details
-
get
-
entrySet
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classAbstractMap<String,
String>
-
setMessageSourceAccessor
public void setMessageSourceAccessor(org.springframework.context.support.MessageSourceAccessor messageSourceAccessor)
-