Registers a new mediator class with the manager
Source position: fpobserver.pp line 377
public function TMediatorManager.RegisterMediator( |
MediatorClass: TMediatorClass; |
MinSubjectClass: TClass |
):TMediatorDef; overload; |
MediatorClass: TMediatorClass; |
MinSubjectClass: TClass; |
const PropertyName: string |
):TMediatorDef; overload; |
MediatorClass: TMediatorClass; |
MinSubjectClass: TClass; |
PropertyTypes: TTypeKinds |
):TMediatorDef; overload; |
MediatorClass |
|
Class reference of the mediator to register |
MinSubjectClass |
|
Minimum subject class the mediator can handle |
Created mediator definition for the registration
MediatorClass |
|
Class reference of the mediator to register |
MinSubjectClass |
|
Minimum subject class the mediator can handle |
PropertyName |
|
Specific property name the mediator handles |
MediatorClass |
|
Class reference of the mediator to register |
MinSubjectClass |
|
Minimum subject class the mediator can handle |
PropertyTypes |
|
Set of property types the mediator can handle |
The RegisterMediator method creates a new mediator definition and adds it to the manager's collection. Multiple overloads allow registration with different criteria including minimum subject class, property names, and property types.
The method returns the created definition, which can be further customized if needed.