brooklyn.util.BrooklynLanguageExtensions Maven / Gradle / Ivy
package brooklyn.util;
import java.util.concurrent.atomic.AtomicBoolean;
import brooklyn.location.basic.PortRanges;
import brooklyn.util.internal.TimeExtras;
public class BrooklynLanguageExtensions {
private BrooklynLanguageExtensions() {}
private static AtomicBoolean done = new AtomicBoolean(false);
public synchronized static void reinit() {
done.set(false);
init();
}
/** performs the language extensions required for this project */
public synchronized static void init() {
if (done.getAndSet(true)) return;
TimeExtras.init();
PortRanges.init();
}
static {
init();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy