Package com.ocs.dynamo.service.impl
Class MessageServiceImpl
- java.lang.Object
-
- com.ocs.dynamo.service.impl.MessageServiceImpl
-
- All Implemented Interfaces:
MessageService
public class MessageServiceImpl extends Object implements MessageService
Implementation of the simple message service- Author:
- bas.rutten
-
-
Constructor Summary
Constructors Constructor Description MessageServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeMessage(String reference, AttributeModel attributeModel, String propertyName, Locale locale)StringgetEntityMessage(String reference, String propertyName, Locale locale)<E extends Enum<?>>
StringgetEnumMessage(Class<E> enumClass, E value, Locale locale)StringgetMessage(String key, Locale locale, Object... args)StringgetMessageNoDefault(String key, Locale locale)StringgetMessageNoDefault(String key, Locale locale, Object... args)
-
-
-
Method Detail
-
getAttributeMessage
public String getAttributeMessage(String reference, AttributeModel attributeModel, String propertyName, Locale locale)
- Specified by:
getAttributeMessagein interfaceMessageService
-
getEntityMessage
public String getEntityMessage(String reference, String propertyName, Locale locale)
- Specified by:
getEntityMessagein interfaceMessageService
-
getEnumMessage
public <E extends Enum<?>> String getEnumMessage(Class<E> enumClass, E value, Locale locale)
- Specified by:
getEnumMessagein interfaceMessageService
-
getMessage
public String getMessage(String key, Locale locale, Object... args)
- Specified by:
getMessagein interfaceMessageService
-
getMessageNoDefault
public String getMessageNoDefault(String key, Locale locale)
- Specified by:
getMessageNoDefaultin interfaceMessageService
-
getMessageNoDefault
public String getMessageNoDefault(String key, Locale locale, Object... args)
- Specified by:
getMessageNoDefaultin interfaceMessageService
-
-