1 22 package org.jboss.test.entity.interfaces; 23 24 30 public class Pathological 31 { 32 private static ThreadLocal pathological = new ThreadLocal (); 33 34 public static boolean isPathological() 35 { 36 Boolean result = (Boolean ) pathological.get(); 37 if (result != null) 38 return result.booleanValue(); 39 else 40 return false; 41 } 42 43 public static void setPathological(boolean value) 44 { 45 pathological.set(new Boolean (value)); 46 } 47 } 48 | Popular Tags |