Package com.evolveum.midpoint.common
Class LocalizationMessageSource
- java.lang.Object
-
- com.evolveum.midpoint.common.LocalizationMessageSource
-
- All Implemented Interfaces:
org.springframework.context.MessageSource
public class LocalizationMessageSource extends Object implements org.springframework.context.MessageSource
Created by Viliam Repan (lazyman).
-
-
Constructor Summary
Constructors Constructor Description LocalizationMessageSource(LocalizationService localizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage(String code, Object[] args, String defaultMessage, Locale locale)
String
getMessage(String code, Object[] args, Locale locale)
String
getMessage(org.springframework.context.MessageSourceResolvable resolvable, Locale locale)
-
-
-
Constructor Detail
-
LocalizationMessageSource
public LocalizationMessageSource(LocalizationService localizationService)
-
-
Method Detail
-
getMessage
public String getMessage(String code, Object[] args, String defaultMessage, Locale locale)
- Specified by:
getMessage
in interfaceorg.springframework.context.MessageSource
-
getMessage
public String getMessage(String code, Object[] args, Locale locale) throws org.springframework.context.NoSuchMessageException
- Specified by:
getMessage
in interfaceorg.springframework.context.MessageSource
- Throws:
org.springframework.context.NoSuchMessageException
-
getMessage
public String getMessage(org.springframework.context.MessageSourceResolvable resolvable, Locale locale) throws org.springframework.context.NoSuchMessageException
- Specified by:
getMessage
in interfaceorg.springframework.context.MessageSource
- Throws:
org.springframework.context.NoSuchMessageException
-
-