Class EntityViewMessageSource
java.lang.Object
com.foreach.across.modules.entity.support.EntityViewMessageSource
- All Implemented Interfaces:
org.springframework.context.MessageSource
public class EntityViewMessageSource
extends Object
implements org.springframework.context.MessageSource
MessageSource
implementation using a EntityMessageCodeResolver
with fallback
message lookups for every message. Used by the DefaultEntityViewFactory
on the ViewElementBuilderContext
.- Since:
- 2.1.0
- Author:
- Arne Vandamme
-
Constructor Summary
-
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)
-
Constructor Details
-
EntityViewMessageSource
-
-
Method Details
-
getMessage
- 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
-