Ext
const mixin Ext
Extension
Override to return non-null for onHouseKeeping callback
Running flag
Logger to use for this extension
Library dotted name that identifies the extension
Return list of observables this extension publishes
Subscribe this library to an observable
Callback made periodically to perform background tasks
Callback when all libs are fully started
Callback when associated settings are modified
Callback when library is started
Callback when extension reaches steady state
Callback when extension is stopped
Callback before we stop the project This is called on dedicated background actor
Project if a project extension, otherwise raise exception
Runtime which is proj if project ext or sys if system ext
Settings for the extension
Xeto spec for this extension
Observable subscriptions for this extension
System
Web service handling for this extension
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