All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.samples.dips.context.ContextUpdatePolicy

java.lang.Object
   |
   +----com.ibm.beans.samples.dips.context.ContextUpdatePolicy

public class ContextUpdatePolicy
extends Object
implements Serializable
ContextUpdatePolicy class keeps a record of the methods that will cause a context element to change. Each context element has an update policy as a private member and provides getters and setters so ContextDip can manage the update policy.


Constructor Index

 o ContextUpdatePolicy()
Constructs a ContextUpdatePolicy.

Method Index

 o getPDforString(String)
Provides access to the properties which trigger a context change
 o getUpdatePolicy()
Provides access to the properties that trigger an annotation.
 o getUpdatePolicyOptions()
Provides access to the available properties that can be used to trigger an annotation.
 o initPolicyOptions(Object)
Initializes the introspector to provide information on what properties are available for a context update policy.
 o setUpdatePolicy(String[])
Sets the properties in the context policy using a String array.

Constructors

 o ContextUpdatePolicy
 public ContextUpdatePolicy()
Constructs a ContextUpdatePolicy.

Methods

 o getUpdatePolicyOptions
 public String[] getUpdatePolicyOptions()
Provides access to the available properties that can be used to trigger an annotation.

Returns:
String[]. An array of the properties as strings.
 o getUpdatePolicy
 public String[] getUpdatePolicy()
Provides access to the properties that trigger an annotation.

Returns:
String[]. An array of the properties as strings.
 o setUpdatePolicy
 public void setUpdatePolicy(String updatePropertiesAsStrings[])
Sets the properties in the context policy using a String array.

Parameters:
updatePolicyAsStrings - The array of strings representing the properties in the context update policy.
 o initPolicyOptions
 public void initPolicyOptions(Object bean)
Initializes the introspector to provide information on what properties are available for a context update policy.

Parameters:
bean - The bean that the context dip listens to for property changes.
 o getPDforString
 public PropertyDescriptor getPDforString(String s)
Provides access to the properties which trigger a context change

Parameters:
s - A string which represents the property descriptor.
Returns:
PropertyDescriptor, the property descriptor for the string provided.

All Packages  Class Hierarchy  This Package  Previous  Next  Index