Interface SystemMessagesProvider

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    DefaultSystemMessagesProvider
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface SystemMessagesProvider
    extends java.io.Serializable
    Gives out system messages based on Locale. Registered using VaadinService.setSystemMessagesProvider(SystemMessagesProvider).
    Since:
    7.0.0
    Author:
    Vaadin Ltd
    • Method Detail

      • getSystemMessages

        SystemMessages getSystemMessages​(SystemMessagesInfo systemMessagesInfo)
        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.
        Parameters:
        systemMessagesInfo - Locale, current request and other information available.
        Returns:
        a system messages object