Package io.gravitee.am.service.i18n
Class SpringGraviteeMessageSource
java.lang.Object
org.thymeleaf.messageresolver.AbstractMessageResolver
io.gravitee.am.service.i18n.GraviteeMessageResolver
io.gravitee.am.service.i18n.SpringGraviteeMessageSource
- All Implemented Interfaces:
org.springframework.context.MessageSource,org.thymeleaf.messageresolver.IMessageResolver
public class SpringGraviteeMessageSource
extends GraviteeMessageResolver
implements org.springframework.context.MessageSource
- Author:
- Eric LELEU (eric.leleu at graviteesource.com), Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
-
Constructor Summary
ConstructorsConstructorDescriptionSpringGraviteeMessageSource(FileSystemDictionaryProvider fileSystemDictionaryProvider, DynamicDictionaryProvider domainBasedDictionaryProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(String code, Object[] args, String defaultMessage, Locale locale) getMessage(String code, Object[] args, Locale locale) getMessage(org.springframework.context.MessageSourceResolvable resolvable, Locale locale) Methods inherited from class io.gravitee.am.service.i18n.GraviteeMessageResolver
createAbsentMessageRepresentation, getDynamicDictionaryProvider, innerResolveMessage, isSupported, removeDictionary, resolveMessage, updateDictionaryMethods inherited from class org.thymeleaf.messageresolver.AbstractMessageResolver
getName, getOrder, setName, setOrder
-
Constructor Details
-
SpringGraviteeMessageSource
public SpringGraviteeMessageSource(FileSystemDictionaryProvider fileSystemDictionaryProvider, DynamicDictionaryProvider domainBasedDictionaryProvider)
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceorg.springframework.context.MessageSource
-
getMessage
public String getMessage(String code, Object[] args, Locale locale) throws org.springframework.context.NoSuchMessageException - Specified by:
getMessagein 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:
getMessagein interfaceorg.springframework.context.MessageSource- Throws:
org.springframework.context.NoSuchMessageException
-