wt.feedback
Class FeedbackSupport

java.lang.Object
  extended bywt.feedback.FeedbackSupport

public class FeedbackSupport
extends Object

FeedbackSupport contains the method used to define what properties feedback is desired for, and those methods that keep track of the current values of the properties for different recursion levels. When a 'level' completes, the previous level's value is restored to the property key in the MethodContext. See the push and pop method descriptions.

Supported API: false
Extendable: false


Field Summary
private static String versionID
           
 
Constructor Summary
FeedbackSupport()
           
 
Method Summary
private static Hashtable getFlagTable()
           
static boolean isEmbedded(Object property)
          isEmbedded is called to determine if the property specified has a stack size greater than one.
static boolean isEmbedded(String property)
          isEmbedded is called to determine if the property specified has a stack size greater than one.
static boolean isSet(String property)
          isSet looks to see if the property given is one that was set via setFlags.
static void pop(Object property)
          Pops the last level's value of the given property and restores that value in the MethodContext.
static void pop(Object[] properties)
          Pops the last level's value of the given properties and restores those values in the MethodContext.
static void push(Object property)
          Pushes the current value of the given property onto a stack associated with the property.
static void push(Object[] properties)
          Pushes the current value of the given properties onto a stack associated with the properties.
static void setFlags(Object[] properties)
          setFlags is called by client service classes to define what properties feedback is wanted for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values
Constructor Detail

FeedbackSupport

public FeedbackSupport()
Method Detail

pop

public static void pop(Object property)
Pops the last level's value of the given property and restores that value in the MethodContext. All server processes that set property values should call FeedbackSupport.push at the beginning and FeedbackSupport.pop at the end. This allows for the proper detection of embedded and recursive processing.

Supported API: false

Parameters:
property - Object defining the property key of the hashtable. This corresponds to the property key in the MethodContext.

pop

public static void pop(Object[] properties)
Pops the last level's value of the given properties and restores those values in the MethodContext. All server processes that set property values should call FeedbackSupport.push at the beginning and FeedbackSupport.pop at the end. This allows for the proper detection of embedded and recursive processing.

Supported API: false

Parameters:
properties - Object array defining the property keys of the hashtable. These correspond to the property keys in the MethodContext.

push

public static void push(Object property)
Pushes the current value of the given property onto a stack associated with the property. All server processes that set property values should call FeedbackSupport.push at the beginning and FeedbackSupport.pop at the end. This allows for the proper detection of embedded and recursive processing.

Supported API: false

Parameters:
property - Object defining the property key of the hashtable. This corresponds to the property key in the MethodContext.

push

public static void push(Object[] properties)
Pushes the current value of the given properties onto a stack associated with the properties. All server processes that set property values should call FeedbackSupport.push at the beginning and FeedbackSupport.pop at the end. This allows for the proper detection of embedded and recursive processing.

Supported API: false


setFlags

public static void setFlags(Object[] properties)
setFlags is called by client service classes to define what properties feedback is wanted for. It is here where a stack is created for each property defined. This stack will be used to keep track of recursive or embedded property settings. The push and pop methods will only act on the properties set here.

Supported API: false

Parameters:
properties - Object array defining the properties for which feedback is desired.

isEmbedded

public static boolean isEmbedded(String property)
isEmbedded is called to determine if the property specified has a stack size greater than one. This would indicated if the property was set in an embedded or recursive process.

Supported API: false

Parameters:
property - String defining the propertyName.
Returns:
true if the stack size is > one. false if the stack size is <= one.

isEmbedded

public static boolean isEmbedded(Object property)
isEmbedded is called to determine if the property specified has a stack size greater than one. This would indicated if the property was set in an embedded or recursive process.

Supported API: false

Parameters:
property - Object defining the property.
Returns:
true if the stack size is > one. false if the stack size is <= one.

isSet

public static boolean isSet(String property)
isSet looks to see if the property given is one that was set via setFlags.

Supported API: false

Parameters:
property - String defining the propertyName.
Returns:
true if the property was set. false if the property was not set.

getFlagTable

private static Hashtable getFlagTable()