Fork me on GitHub

Registration over Interface

If you have multiple implementations of an interface (for example a plug-in), you can define on the interface itself, which events or event handler methods should by used. This allows you to define the interaction with the event broker once on the interface for all implementations.

The class implementing the interface mustn't repeat the attributes or register the event or event handler method over the registrar. This would result in an exception during registration.