Ext
const mixin Ext
Extension
Callback before we stop the project This is called on dedicated background actor
Settings for the extension
Runtime which is proj if project ext or sys if system ext
Observable subscriptions for this extension
Logger to use for this extension
Project if a project extension, otherwise raise exception
System
Subscribe this library to an observable
Xeto spec for this extension
Callback made periodically to perform background tasks
Return list of observables this extension publishes
Callback when library is started
Running flag
Callback when extension reaches steady state
Web service handling for this extension
Override to return non-null for onHouseKeeping callback
Library dotted name that identifies the extension
Callback when associated settings are modified
Callback when extension is stopped
Callback when all libs are fully started
virtual Duration? houseKeepingFreq()
Override to return non-null for onHouseKeeping callback
Bool isRunning()
Running flag. On startup this flag transitions to true before calling onStart. On shutdown this flag transitions to false before calling onUnready and onStop. If the onStart callback raises an exception then this flag transitions back to false.
Log log()
Logger to use for this extension
Str name()
Library dotted name that identifies the extension
virtual Observable[] observables()
Return list of observables this extension publishes. This method must be overridden as a const field and set in the constructor.
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.
virtual Void onHouseKeeping()
Callback made periodically to perform background tasks. Override houseKeepingFreq to enable the frequency of this callback.
virtual Void onReady()
Callback when all libs are fully started. This is called on dedicated background actor.
virtual Void onSettings()
Callback when associated settings are modified. This is called on dedicated background actor.
virtual Void onStart()
Callback when library is started. This is called on dedicated background actor.
virtual Void onSteadyState()
Callback when extension reaches steady state. This is called on dedicated background actor.
virtual Void onStop()
Callback when extension is stopped. This is called on dedicated background actor.
virtual Void onUnready()
Callback before we stop the project This is called on dedicated background actor.
virtual Proj proj()
Project if a project extension, otherwise raise exception
virtual Runtime rt()
Runtime which is proj if project ext or sys if system ext
virtual Dict settings()
Settings for the extension
Spec spec()
Xeto spec for this extension
Subscription[] subscriptions()
Observable subscriptions for this extension
virtual Sys sys()
System
virtual ExtWeb web()
Web service handling for this extension