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

se.ugli.habanero.j.internal.HabaneroProperties Maven / Gradle / Ivy

There is a newer version: 1.8.1.1
Show newest version
package se.ugli.habanero.j.internal;

import java.io.IOException;
import java.util.Properties;

import se.ugli.habanero.j.HabaneroException;

public final class HabaneroProperties {

	public final static String RESOURCE = "/habanero.properties";

	public static Properties get() {
		try {
			if (ResourceUtil.exists(RESOURCE)) {
				final Properties properties = new Properties();
				properties.load(HabaneroProperties.class.getResourceAsStream(RESOURCE));
				return properties;
			}
			throw new HabaneroException(RESOURCE + " not found");
		} catch (final IOException e) {
			throw new HabaneroException(e);
		}
	}

	private HabaneroProperties() {
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy