KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > vladium > emma > rt > RTSettings


1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
2  *
3  * This program and the accompanying materials are made available under
4  * the terms of the Common Public License v1.0 which accompanies this distribution,
5  * and is available at http://www.eclipse.org/legal/cpl-v10.html
6  *
7  * $Id: RTSettings.java,v 1.1.1.1 2004/05/09 16:57:44 vlad_r Exp $
8  */

9 package com.vladium.emma.rt;
10
11 // ----------------------------------------------------------------------------
12
/**
13  * Conceptually, this class is an extention of class RT. This is a separate class,
14  * however, to help load RT in a lazy manner.
15  *
16  * @author Vlad Roubtsov, (C) 2003
17  */

18 public
19 abstract class RTSettings
20 {
21     // public: ................................................................
22

23     
24     public static synchronized boolean isStandaloneMode ()
25     {
26         return ! s_not_standalone;
27     }
28     
29     public static synchronized void setStandaloneMode (final boolean standalone)
30     {
31         s_not_standalone = ! standalone;
32     }
33     
34     // protected: .............................................................
35

36     // package: ...............................................................
37

38     // private: ...............................................................
39

40     
41     private RTSettings () {} // prevent subclassing
42

43     private static boolean s_not_standalone;
44
45 } // end of class
46
// ----------------------------------------------------------------------------
Popular Tags