01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TerracottaUtils.java 3802 2007-06-22 10:37:48Z gbevin $
07: */
08: package com.uwyn.rife.tools;
09:
10: public abstract class TerracottaUtils {
11: private static transient Boolean IS_TC_PRESENT = null;
12:
13: public static boolean isTcPresent() {
14: if (null == IS_TC_PRESENT) {
15: IS_TC_PRESENT = Boolean.getBoolean("tc.active");
16: }
17:
18: return IS_TC_PRESENT.booleanValue();
19: }
20: }
|