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

javastrava.config.Messages Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha
Show newest version
package javastrava.config;

import java.util.ResourceBundle;

/**
 * Internationalisable messages
 * @author Dan Shannon
 *
 */
public class Messages {
	/**
	 * Bundle name
	 */
	private static final String BUNDLE_NAME = "java-strava-messages"; //$NON-NLS-1$

	/**
	 * The resource bundle itseld
	 */
	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);

	/**
	 * Get the value of a property in the resource bundle
	 * @param key Name of the property
	 * @return The value of the property
	 */
	public static String string(final String key) {
		return RESOURCE_BUNDLE.getString(key);

	}

	/**
	 * no args constructor
	 */
	private Messages() {
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy