1 22 package org.jboss.aop; 23 24 29 public abstract class WeavingStrategySupport implements WeavingStrategy 30 { 31 32 private static ThreadLocal REENTRY = new ThreadLocal () 33 { 34 protected Object initialValue() 35 { 36 return Boolean.FALSE; 37 } 38 }; 39 40 45 protected static boolean isReEntry() 46 { 47 return ((Boolean ) REENTRY.get()).booleanValue(); 48 } 49 50 53 protected static void setReEntry() 54 { 55 REENTRY.set(Boolean.TRUE); 56 } 57 58 61 protected static void clearReEntry() 62 { 63 REENTRY.set(Boolean.FALSE); 64 } 65 } 66 | Popular Tags |