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

com.github.cukedoctor.config.CukedoctorConfig Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package com.github.cukedoctor.config;

/**
 * Created by pestano on 22/06/15.
 */
public abstract class CukedoctorConfig {

	public static final int ERROR_MESSAGE_SIZE = getProperty("ERROR_MESSAGE_SIZE",Integer.class) == null ? 400 : getProperty("ERROR_MESSAGE_SIZE",Integer.class);
	public static final String DOCUMENT_TITLE= getProperty("DOCUMENT_TITLE") == null ? "Documentation" : getProperty("DOCUMENT_TITLE");


	private static  T getProperty(String property, Class type) {
		if(System.getProperty(property) == null){
			return null;
		}
		return (T)System.getProperty(property);
	}

	private static String getProperty(String property) {
		if(System.getProperty(property) == null){
			return null;
		}
		return System.getProperty(property);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy