type
Ext
const mixin Ext
Extension
methods
| houseKeepingFreq |
Override to return non-null for onHouseKeeping callback |
|---|---|
| isRunning |
Running flag. |
| log |
Logger to use for this extension |
| name |
Library dotted name that identifies the extension |
| observables |
Return list of observables this extension publishes. |
| observe |
Subscribe this library to an observable. |
| onHouseKeeping |
Callback made periodically to perform background tasks. |
| onReady |
Callback when all libs are fully started. |
| onSettings |
Callback when associated settings are modified. |
| onStart |
Callback when library is started. |
| onSteadyState |
Callback when extension reaches steady state. |
| onStop |
Callback when extension is stopped. |
| onUnready |
Callback before we stop the project This is called on dedicated background actor. |
| proj |
Project if a project extension, otherwise raise exception |
| rt |
Runtime which is proj if project ext or sys if system ext |
| settings |
Settings for the extension |
| spec |
Xeto spec for this extension |
| subscriptions |
Observable subscriptions for this extension |
| sys |
System |
| web |
Web service handling for this extension |
Slot Details
houseKeepingFreq
virtual Duration? houseKeepingFreq()
Override to return non-null for onHouseKeeping callback
isRunning
log
Log log()
Logger to use for this extension
name
Str name()
Library dotted name that identifies the extension
observables
virtual Observable[] observables()
Return list of observables this extension publishes. This method must be overridden as a const field and set in the constructor.
observe
Subscription observe(Str name, Dict config, Obj callback)
Subscribe this library to an observable. The callback must be an Actor instance or Method literal on this class. If callback is a method, then its called on the lib's dedicated background actor. pool. This method should be called in the onStart callback. The observation is automatically unsubscribed on stop. You should not unsubscribe this subscription - it must be managed by the extension itself. See Observables.
onHouseKeeping
virtual Void onHouseKeeping()
Callback made periodically to perform background tasks. Override houseKeepingFreq to enable the frequency of this callback.
onReady
virtual Void onReady()
Callback when all libs are fully started. This is called on dedicated background actor.
onSettings
virtual Void onSettings()
Callback when associated settings are modified. This is called on dedicated background actor.
onStart
virtual Void onStart()
Callback when library is started. This is called on dedicated background actor.
onSteadyState
virtual Void onSteadyState()
Callback when extension reaches steady state. This is called on dedicated background actor.
onStop
virtual Void onStop()
Callback when extension is stopped. This is called on dedicated background actor.
onUnready
virtual Void onUnready()
Callback before we stop the project This is called on dedicated background actor.
proj
virtual Proj proj()
Project if a project extension, otherwise raise exception
rt
virtual Runtime rt()
Runtime which is proj if project ext or sys if system ext
settings
virtual Dict settings()
Settings for the extension
spec
Spec spec()
Xeto spec for this extension
subscriptions
Subscription[] subscriptions()
Observable subscriptions for this extension
sys
virtual Sys sys()
System
web
virtual ExtWeb web()
Web service handling for this extension