TROInterfaceRegistry
Overview
This is a collection to store and manage a list of interface references. In addition to existing ancestor's functionality this class provides a couple of methods to keep interface references unique in the list (TInterfaceList allows to store several copies of the same reference in the list).
This is the rarely used class, inside the library it is used only by TROBroadcastChannel internally. Also can be used by users if uniquity of stored interface references is required.
Location
- Unit: uROBroadcastChannel.pas
- Ancestry: TInterfaceList | TROInterfaceRegistry
Instance Methods
constructor Create
Creates the class instance. The parameter is ignored, nil can be passed there safely.
constructor Create(aInterfaceType: TGUID)
Parameters:
- aInterfaceType:
Register
Adds the interface reference to the list. If such reference is already exists in the list then no action is performed.
procedure Register(aInterface: IInterface)
Parameters:
- aInterface: The interface reference to add to the list.
Unregister
Removes the interface reference from the list. If the reference passed to the method is not contained in the list then no action is performed.
procedure Unregister(aInterface: IInterface)
Parameters:
- aInterface: The interface reference to remove from the list.