BBjEnterpriseNamespace::setCallbackForNamespace
Description
In BBj 13.00 and higher, this method sets a callback that will be called whenever any Named/Variable within this BBjEnterpriseNamespace is set.
Syntax
|
Return Value |
Method |
|---|---|
|
void |
setCallbackForNamespace(String callbackName) |
|
void |
setCallbackForNamespace(CustomObject customObj, String methodName) |
| void | setCallbackForNamespace(Object object, String methodName) |
Parameters
|
Variable |
Description |
|---|---|
|
callbackName |
Specifies the name of the callback to be called when the value changes. |
|
customObj |
Specifies a CustomObject that has a method which is to be called when value is set. |
|
methodName |
Specifies the method of the Object which is to be called. |
| object | Specifies a Java Object that has a method which is to be called when the value is set. |
Return Value
None.
Remarks
The callback set using setCallbackForNamespace will be called whenever the value for a variable within the BBjEnterpriseNamespace is set even if the new value is the same as the previous value. This is different from a callback set using the setCallbackForNamespaceChange(), which is only called if the new value is different from the old value.
All callbacks that a program registered on a BBjEnterpriseNamespace are removed when that program executes START, STOP, END, or BEGIN. All callbacks registered by a BBj process are removed when the BBj process terminates.
Example
|
Version History
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.