[ 1732480 ] Improve callout recursive call detection

Restoring is/set CalloutActive methods - recursive detection can coexist with old method for other purposes
This commit is contained in:
Carlos Ruiz 2007-12-12 21:02:01 +00:00
parent 8791f443e5
commit 3557756bc4
1 changed files with 3 additions and 7 deletions

View File

@ -165,28 +165,24 @@ public class CalloutEngine implements Callout
/*************************************************************************/ /*************************************************************************/
//private static boolean s_calloutActive = false; private static boolean s_calloutActive = false;
/** /**
* Is Callout Active. * Is Callout Active.
* Deprecated, callout no longer need to call this method to avoid recursive invocation.
* @deprecated
* @return true if active * @return true if active
*/ */
protected static boolean isCalloutActive() protected static boolean isCalloutActive()
{ {
return false; return s_calloutActive;
} // isCalloutActive } // isCalloutActive
/** /**
* Set Callout (in)active. * Set Callout (in)active.
* Deprecated, callout no longer need to call this method to avoid recursive invocation.
* @deprecated
* @param active active * @param active active
*/ */
protected static void setCalloutActive (boolean active) protected static void setCalloutActive (boolean active)
{ {
; //no op s_calloutActive = active;
} // setCalloutActive } // setCalloutActive
/** /**