/*
 * TraceOnHelper.java
 *
 * Created on September 28, 2006, 5:28 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.sun.enterprise.admin.monitor.callflow;

/**
 *
 * @author hsingh
 */
public class TraceOnHelper {
    
    public static final String TRACE_PROPERTY =
            "com.sun.enterprise.callflow.trace";

    private static final TraceOnHelper traceOnHelper = new TraceOnHelper ();
    private static boolean traceOn;
    /** Creates a new instance of TraceOnHelper */
    private TraceOnHelper() {
        if (System.getProperty(TRACE_PROPERTY, "false").equals("true")) {
            traceOn = true;
        } else{
            traceOn = false;
        }
    }
    
    public static final boolean isTraceOn (){
        return traceOnHelper.traceOn;
    }
}
