Unit 'fpobserver' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TMediatorDef.BetterMatch

Compares this definition against another for best match selection

Declaration

Source position: fpobserver.pp line 348

public function TMediatorDef.BetterMatch(

  M: TMediatorDef

):Boolean;

Arguments

M

  

Other mediator definition to compare against

Function result

True if this definition is a better match

Description

The BetterMatch method compares this definition against another to determine which provides a better match for a given scenario. It considers property name specificity, class hierarchies, and mediator types.

This comparison logic ensures that the most specific and appropriate mediator is selected when multiple mediators could handle the same situation.

See also

FindDefFor

  

Finds the best mediator definition for given parameters


Documentation generated on: Dec 15 2025