1 28 29 package com.idaremedia.antx.condition.solo; 30 31 42 43 final class RuleUserHandle 44 { 45 48 RuleUserHandle() 49 { 50 } 51 52 57 ShareableConditionUser setCaller(ShareableConditionUser c) 58 { 59 ShareableConditionUser old = m_ruleUser; 60 m_ruleUser = c; 61 return old; 62 } 63 64 65 69 ShareableConditionUser getCaller() 70 { 71 return m_ruleUser; 72 } 73 74 75 76 private ShareableConditionUser m_ruleUser; 77 78 79 86 static final class Factory extends InheritableThreadLocal 87 { 88 91 protected Object initialValue() 92 { 93 return new RuleUserHandle(); 94 } 95 96 100 protected Object childValue(Object parentValue) 101 { 102 RuleUserHandle parentsJunk = (RuleUserHandle)parentValue; 103 RuleUserHandle copy = new RuleUserHandle(); 104 if (parentsJunk!=null) { 105 copy.setCaller(parentsJunk.getCaller()); 106 } 107 return copy; 108 } 109 110 113 Factory() 114 { 115 } 116 } 117 } 118 119 120 | Popular Tags |