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

org.spincast.plugins.request.SpincastRequestPluginDictionaryEntries Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.spincast.plugins.request;

import java.util.Map;

import org.spincast.core.dictionary.Dictionary;
import org.spincast.core.dictionary.DictionaryBase;
import org.spincast.core.dictionary.DictionaryEntries;

import com.google.inject.Inject;

/**
 * Messages to be added to the {@link Dictionary}.
 */
public class SpincastRequestPluginDictionaryEntries extends DictionaryBase implements DictionaryEntries {

    public static final String MESSAGE_KEY_FORM_GET_EMPTYNAME =
            SpincastRequestPluginDictionaryEntries.class.getName() + ".form.get.EmptyName";

    @Inject
    public void init() {

        key(MESSAGE_KEY_FORM_GET_EMPTYNAME,
            msg("", "The name can't be empty."));
    }

    @Override
    public Map> getDictionaryEntries() {
        return getMessages();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy