001/**
002 * Get more info at : www.jrebirth.org .
003 * Copyright JRebirth.org © 2011-2013
004 * Contact : sebastien.bordes@jrebirth.org
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018package org.jrebirth.af.core.key;
019
020import static org.jrebirth.af.core.resource.Resources.create;
021
022import org.jrebirth.af.api.resource.i18n.JRLevel;
023import org.jrebirth.af.api.resource.i18n.MessageItem;
024import org.jrebirth.af.core.log.JRebirthMarkers;
025import org.jrebirth.af.core.resource.i18n.LogMessage;
026import org.jrebirth.af.core.resource.i18n.MessageContainer;
027
028/**
029 * The class <strong>KeyMessages</strong>.
030 *
031 * Messages used by the Key package.
032 *
033 * @author Sébastien Bordes
034 */
035public interface KeyMessages extends MessageContainer {
036
037    /** MultitonKey. */
038
039    /** "No KeyGenerator method found ({0}) for type {1}" . */
040    MessageItem NO_KEY_GENERATOR_METHOD = create(new LogMessage("jrebirth.key.noKeyGeneratorMethod", JRLevel.Error, JRebirthMarkers.KEY));
041
042    /** "Fail to generate the key for method: {0} for of {1}" . */
043    MessageItem KEY_GENERATOR_FAILURE = create(new LogMessage("jrebirth.key.keyGeneratorFailure", JRLevel.Error, JRebirthMarkers.KEY));
044
045    /** "Fail to generate the method key for method: {0} of type {1}" . */
046    MessageItem METHOD_KEY_GENERATOR_FAILURE = create(new LogMessage("jrebirth.key.methodKeyGeneratorFailure", JRLevel.Error, JRebirthMarkers.KEY));
047
048    /** "Method not found: {0} for type {1}" . */
049    MessageItem METHOD_NOT_FOUND = create(new LogMessage("methodNotFound", JRLevel.Error, JRebirthMarkers.KEY));
050
051    /** "The method key returned is null for method: {0} of type {1}" . */
052    MessageItem NULL_METHOD_KEY = create(new LogMessage("jrebirth.key.nullMethodKey", JRLevel.Warn, JRebirthMarkers.KEY));
053
054    /** "No toString method found for the returned object of ({0}) of type {1}" . */
055    MessageItem NO_TOSTRING_KEY_METHOD = create(new LogMessage("jrebirth.key.noToStringKeyMethod", JRLevel.Error, JRebirthMarkers.KEY));
056
057    /** "Fail to stringify the returned key of the method {0} of type {1}" . */
058    MessageItem METHOD_KEY_TOSTRING_FAILURE = create(new LogMessage("jrebirth.key.methodKeyToStringFailure", JRLevel.Error, JRebirthMarkers.KEY));
059
060    /** "The string of the method key returned is null for method: {0} of type {1}" . */
061    MessageItem NULL_METHOD_KEY_STRING = create(new LogMessage("jrebirth.key.nullMethodKeyString", JRLevel.Warn, JRebirthMarkers.KEY));
062
063}