Package com.vaadin.server
Class DefaultSystemMessagesProvider
- java.lang.Object
-
- com.vaadin.server.DefaultSystemMessagesProvider
-
- All Implemented Interfaces:
SystemMessagesProvider
,Serializable
public class DefaultSystemMessagesProvider extends Object implements SystemMessagesProvider
System messages provider using the built-in default system messages. This singleton is accessed usingget()
.- Since:
- 7.0.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemMessagesProvider
get()
Gets the instance.SystemMessages
getSystemMessages(SystemMessagesInfo systemMessagesInfo)
Gets the system messages to use in the given context.
-
-
-
Method Detail
-
getSystemMessages
public SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo)
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
public static SystemMessagesProvider get()
Gets the instance.- Returns:
- the default system messages provider.
-
-