Class MessageServiceImpl
java.lang.Object
org.broadleafcommerce.common.config.service.MessageServiceImpl
- All Implemented Interfaces:
MessageService
@Service("blMessageService")
public class MessageServiceImpl
extends Object
implements MessageService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.MessageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(String code) Returns the message requested by the code with no arguments and the currently set Java Locale on theBroadleafRequestContextas returned byBroadleafRequestContext.getJavaLocale()getMessage(String code, Object... args) Returns the message requested by the code with the specified arguments and the currently set Java Locale on theBroadleafRequestContextas returned byBroadleafRequestContext.getJavaLocale()
-
Field Details
-
messageSource
protected org.springframework.context.MessageSource messageSource
-
-
Constructor Details
-
MessageServiceImpl
public MessageServiceImpl()
-
-
Method Details
-
getMessage
Description copied from interface:MessageServiceReturns the message requested by the code with no arguments and the currently set Java Locale on theBroadleafRequestContextas returned byBroadleafRequestContext.getJavaLocale()- Specified by:
getMessagein interfaceMessageService- Returns:
- the message
-
getMessage
Description copied from interface:MessageServiceReturns the message requested by the code with the specified arguments and the currently set Java Locale on theBroadleafRequestContextas returned byBroadleafRequestContext.getJavaLocale()- Specified by:
getMessagein interfaceMessageService- Returns:
- the message
-