Skip to content

TMediatorDef

Definition for registering mediators with the mediator manager

Declaration

Source position: fpobserver.pp line 337

type

  TMediatorDef = class(TCollectionItem)
  public
    function Handles : Boolean;
    function BetterMatch : Boolean;
    property MediatorClass: TMediatorClass; {rw}
    property MinSubjectClass: TClass; {rw}
    property PropertyTypes: TTypeKinds; {rw}
    property PropertyName: string; {rw}
  end;

Description

The TMediatorDef class represents a mediator definition used by the mediator manager to automatically select appropriate mediator classes for given subject/GUI combinations.

Each definition specifies the mediator class, minimum subject class, and either specific property names or property types that the mediator can handle. The manager uses this information to find the best matching mediator for automatic mediation scenarios.

Properties

Member Visibility Description
MediatorClass public Class reference for the mediator implementation
MinSubjectClass public Minimum subject class that this mediator can handle
PropertyName public Specific property name this mediator handles
PropertyTypes public Set of property types this mediator can handle
See all Properties

Methods

Member Visibility Description
BetterMatch public Compares this definition against another for best match selection
Handles public Determines if this definition can handle the given subject/GUI combination
See all Methods

See also

Name Description
Handles Determines if this definition can handle the given subject/GUI combination