Package com.vaadin.server
Interface SystemMessagesProvider
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultSystemMessagesProvider
public interface SystemMessagesProvider extends Serializable
Gives out system messages based on Locale. Registered usingVaadinService.setSystemMessagesProvider(SystemMessagesProvider)
.- Since:
- 7.0.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SystemMessages
getSystemMessages(SystemMessagesInfo systemMessagesInfo)
Gets the system messages to use in the given context.
-
-
-
Method Detail
-
getSystemMessages
SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo)
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.- Parameters:
systemMessagesInfo
- Locale, current request and other information available.- Returns:
- a system messages object
-
-