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

com.ch.utils.PropertyCache Maven / Gradle / Ivy

Go to download

The Charles Hudson Java SDK wraps the REST API in a lightweight library. The Java SDK enables you to develop a fast, flexible, and customized integration with CH cloud solution.

There is a newer version: 1.0.7
Show newest version
package com.ch.utils;

import com.ch.exception.PropertyNotFoundException;
public  final class PropertyCache  extends PropertyReader {
	

	public static String getProperty(String key) throws PropertyNotFoundException {
		if(properties.containsKey(key)) {
			return PropertyReader.properties.getProperty(key);
		} else {
			throw new PropertyNotFoundException(" Property " + key + " not found");
		}
	}
	public static Object getPropertyObject(String key) throws PropertyNotFoundException {
		if(properties.containsKey(key)) {
			return PropertyReader.properties.getProperty(key);
		} else {
			throw new PropertyNotFoundException(" Property " + key + " not found");
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy