Package com.vaadin.flow.server
Class DefaultSystemMessagesProvider
java.lang.Object
com.vaadin.flow.server.DefaultSystemMessagesProvider
- All Implemented Interfaces:
SystemMessagesProvider
,Serializable
System messages provider using the built-in default system messages. This
singleton is accessed using
get()
.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SystemMessagesProvider
get()
Gets the instance.getSystemMessages
(SystemMessagesInfo systemMessagesInfo) Gets the system messages to use in the given context.
-
Method Details
-
getSystemMessages
Description copied from interface:SystemMessagesProvider
Gets the system messages to use in the given context. TheSystemMessagesInfo
object contains available information but in most cases some or both ofVaadinSession.getCurrent()
andUI.getCurrent()
can also be used to find more information to help the decision.- Specified by:
getSystemMessages
in interfaceSystemMessagesProvider
- Parameters:
systemMessagesInfo
- Locale, current request and other information available.- Returns:
- a system messages object
-
get
Gets the instance.- Returns:
- the default system messages provider.
-