KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > TransparencyClassSpecUtil


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.config;
5
6 import java.util.Collections JavaDoc;
7 import java.util.HashMap JavaDoc;
8 import java.util.Map JavaDoc;
9
10 public class TransparencyClassSpecUtil {
11
12   private static final Map JavaDoc anomalies = Collections.synchronizedMap(new HashMap JavaDoc());
13
14   private static final String JavaDoc IGNORE_CHECKS = "IGNORE_CHECKS";
15
16   static {
17     anomalies.put("org.apache.commons.collections.FastHashMap", IGNORE_CHECKS);
18   }
19
20   private TransparencyClassSpecUtil() {
21     super();
22   }
23
24   public static boolean ignoreChecks(String JavaDoc className) {
25     return IGNORE_CHECKS.equals(anomalies.get(className));
26   }
27
28 }
29
Popular Tags