AJS_DefMgr

Headings,
Definitions
and
Notes
Opt .............. Optional instance/property (where applicable). An application may use or ignore optional return-objects/-values.
N ................. Number of instances required, permitted or available within the scope in question (applies only to user-createable objects, a dash is shown for object properties)
Object ...........Any object with an Object prototype
* ................. Many/Any-Class
NumLit/Num .. Number literal or number object
StrLit/Str ....... String literal or string object
1 ................. Returns a set of whatever the applyDefToMthod call-back returns. The set contains only one member if applyDef calls applyDefToMthod only once, which happens when the def is applied to only one method of a given object.
2 ................. Is passed whatever is returned from the user-defined applyDefToMethod call-back. AJS_Validator and AJS_Logger are passed the WrapperCtrl object that the call-backs get from calling AJS.addWrapper.
3 ................. Can be anything, even undefined. The applyDefToMethod call-backs that AJS_Validator and AJS_Logger provide return the WrapperCtrl object that is returned from AJS.addWrapper (which facilitates their suspend/resume functionality).
Top-Level
Types
Name Class Opt N Arguments Returns Return Description
createAJS_DefMgr Function N 1 ( StrLit/Str ClientName, StrLit/Str DefType, Function onException) Object AJS_DefMgr
AJS_DefMgr Object Y 0..*
DefMgr
Properties
pushToPending Function ( Object MethodOwner, Object Def, StrLit/Str MethodOwnerName, StrLit/Str ClientMethodName, [, NumLit/Num StackOffset]) undefined
applyDef Function ( Object MethodOwner, Object Def, StrLit/Str MethodOwnerName, Function applyDefToMethod, StrLit/Str ClientMethodName, [, NumLit/Num StackOffset]) Array See Note 1
applyAllPending Function ( Function applyDefToMethod, StrLit/Str ClientMethodName, [, NumLit/Num StackOffset]) NumLit No. defs applied
onDefUnapplied Function ( Object MethodOwner, StrLit/Str MethodName, [, NumLit/Num StackOffset]) undefined
forAllApplied Function ( Function action) undefined
AJS_Validator_Tag StrLit
Version StrLit
Def
Properties
MethodNames Array Y
MethodNames
Members
MethodName StrLit/Str N 1..*
Call-Backs action Function N ( * See Note 2) undefined
applyDefToMethod Function N ( Object MethodOwner, StrLit/Str MethodName, StrLit/Str MethodOwnerName, Object Def, [, NumLit/Num StackOffset]) * See Note 3
onException Function N ( StrLit/Str ExceptionClassName, StrLit/Str Message [, NumLit/Num StackOffset]) undefined