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 SystemMessagesProviderget()Gets the instance.getSystemMessages(SystemMessagesInfo systemMessagesInfo) Gets the system messages to use in the given context.
-
Method Details
-
getSystemMessages
Description copied from interface:SystemMessagesProviderGets the system messages to use in the given context. TheSystemMessagesInfoobject 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:
getSystemMessagesin 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.
-