|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.i18n.CrossCheckingMessageSource
public class CrossCheckingMessageSource
Test class loading the same properties files in two or more message sources and comparing their behavior.
m_types. This class will then resolve
every
message it is asked to resolve from both sources, and assert they
agree about the message's value. (You should therefore enable assertions ...)
| Constructor Summary | |
|---|---|
CrossCheckingMessageSource()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Creates and initializes the requested message sources. |
String |
getMessage(MessageSourceResolvable resolvable,
Locale locale)
|
String |
getMessage(String code,
Object[] args,
Locale locale)
|
String |
getMessage(String code,
Object[] args,
String defaultMessage,
Locale locale)
|
void |
setBasenames(String[] basenames)
Like ResourceBundleMessageSource.setBasenames(String[]). |
void |
setTypes(String[] types)
Sets the types of the message sources to be compared. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrossCheckingMessageSource()
| Method Detail |
|---|
public void setTypes(String[] types)
public void setBasenames(String[] basenames)
ResourceBundleMessageSource.setBasenames(String[]).
public String getMessage(MessageSourceResolvable resolvable,
Locale locale)
throws NoSuchMessageException
getMessage in interface MessageSourceNoSuchMessageException
public String getMessage(String code,
Object[] args,
Locale locale)
throws NoSuchMessageException
getMessage in interface MessageSourceNoSuchMessageException
public String getMessage(String code,
Object[] args,
String defaultMessage,
Locale locale)
getMessage in interface MessageSource
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||