All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.server.DefaultSystemMessagesProvider Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */

package com.vaadin.server;

/**
 * System messages provider using the built-in default system messages. This
 * singleton is accessed using {@link #get()}.
 *
 * @author Vaadin Ltd
 * @since 7.0.0
 */
public class DefaultSystemMessagesProvider implements SystemMessagesProvider {

    private static final DefaultSystemMessagesProvider INSTANCE = new DefaultSystemMessagesProvider();

    private DefaultSystemMessagesProvider() {
        // Singleton
    }

    @Override
    public SystemMessages getSystemMessages(
            SystemMessagesInfo systemMessagesInfo) {
        return ServletPortletHelper.DEFAULT_SYSTEM_MESSAGES;
    }

    /**
     * Gets the instance.
     *
     * @return the default system messages provider.
     */
    public static SystemMessagesProvider get() {
        return INSTANCE;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy