com.vaadin.server.DefaultSystemMessagesProvider Maven / Gradle / Ivy
/*
* 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;
}
}