Notifier

Helper class that can be use to notify one or more components.

Description

The Notifier class is a helper class that can be use to notify one or more components.

Static methods

notify

Sets execution parameters.

static notify(context: Optional[IContext], components: List[Any], args: Parameters)

  • context: IContext - (optional) a context to trace execution through a call chain.
  • components: List[Any] - a list of components that are to be notified.
  • args: Parameters - notification arguments.

notify_one

Notifies specific component.

To be notiied components must implement INotifiable interface. If they don’t, the call to this method has no effect.

static notify_one(context: Optional[IContext], component: Any, args: Parameters)

  • context: IContext - (optional) a context to trace execution through a call chain.
  • component: Any - the component that is to be notified.
  • args: Parameters - notifiation arguments.

See also