Sign in Join
FPDoc Onlineexperiment

TMediatorManager class

In unit fpObserver

Central manager for registering and finding mediator definitions

Declaration

pascal
TMediatorManager = class(TObject)

Inheritance

  1. TMediatorManager
  2. TObject

Description

The TMediatorManager class provides centralized registration and lookup of mediator definitions. It allows registration of mediator classes with specific requirements and automatically finds the best matching mediator for given subject/GUI combinations.

The manager uses a collection of mediator definitions to evaluate compatibility and select the most appropriate mediator based on class hierarchies, property types, and property names.

Properties

DefspublicCollection of registered mediator definitions

Methods

CreatepublicCreates the mediator manager with empty definition collection
DestroypublicDestroys the manager and its definition collection
FindDefForpublicFinds the best mediator definition for given parameters
RegisterMediatorpublicRegisters a new mediator class with the manager

Inherited

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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