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

org.multiverse.MultiverseConstants Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
package org.multiverse;

import static java.lang.Boolean.parseBoolean;
import static java.lang.System.getProperty;

/**
 * An interface containing global constants (currently only sanity check). It is a final instead of something mutable so
 * that the JIT can completely remove code if some condition has not been met. The advantage is that you don't have to
 * pay to price for adding some kind of check, if it isn't used. The problem is that the scope is all classes loaded by
 * some classloader, share the same configuration. So one STM implementation with sanity checks enabled and the other
 * not, is not possible.
 * 

* It is an interface so that is can be 'implemented' for easier access. * * @author Peter Veentjer */ public interface MultiverseConstants { boolean ___BUGSHAKER_ENABLED = parseBoolean(getProperty("org.multiverse.bugshaker.enabled", "false")); boolean ___TRACING_ENABLED = parseBoolean(getProperty("org.multiverse.tracing.enabled", "false")); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy