Here you can find the source of isActivated()
public static boolean isActivated()
//package com.java2s; //License from project: Apache License import java.util.concurrent.atomic.AtomicBoolean; public class Main { private static final AtomicBoolean isActivated = new AtomicBoolean(false); public static boolean isActivated() { return isActivated.get(); }//from ww w . j a v a 2s . co m }