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 SystemMessagesProviderget()Gets the instance.SystemMessagesgetSystemMessages(SystemMessagesInfo systemMessagesInfo)Gets the system messages to use in the given context.
-
-
-
Method Detail
-
getSystemMessages
public SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo)
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
public static SystemMessagesProvider get()
Gets the instance.- Returns:
- the default system messages provider.
-
-