Sign in Join
FPDoc Onlineexperiment

MediatorManager function

In unit fpObserver

Returns the global singleton mediator manager instance

Declaration

pascal
function MediatorManager: TMediatorManager

Function result

Global mediator manager instance

Description

The MediatorManager function returns the global singleton instance of the mediator manager. If the instance doesn't exist yet, it creates one automatically.

This function provides convenient access to the global mediator manager for registering mediators and finding appropriate mediator definitions.

This function is not thread-safe, so make sure to call it once in the main thread so the instance is created once.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.