com.vaadin.server
Class DefaultSystemMessagesProvider

java.lang.Object
  extended by com.vaadin.server.DefaultSystemMessagesProvider
All Implemented Interfaces:
SystemMessagesProvider, java.io.Serializable

public class DefaultSystemMessagesProvider
extends java.lang.Object
implements SystemMessagesProvider

System messages provider using the built-in default system messages. This singleton is accessed using get().

Since:
7.0.0
Author:
Vaadin Ltd
See Also:
Serialized Form

Method Summary
static SystemMessagesProvider get()
          Gets the instance.
 SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo)
          Gets the system messages to use in the given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSystemMessages

public SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo)
Description copied from interface: SystemMessagesProvider
Gets the system messages to use in the given context. The SystemMessagesInfo object contains available information but in most cases some or both of VaadinSession.getCurrent() and UI.getCurrent() can also be used to find more information to help the decision.

Specified by:
getSystemMessages in interface SystemMessagesProvider
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.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.