Previous | Table of Contents | Next |
An event source embodies the potential for the component to generate events of a specified type, and provides mechanisms for
associating consumers with sources.
There are two categories of event sources, publishers and emitters. Both are implemented using event channels supplied by
the container. An emitter can be connected to at most one consumer. A publisher can be connected through the channel to an
arbitrary number of consumers, who are said to subscribe to the publisher event source. A component may exhibit zero or more
emitters and publishers.
3.17.4.1 Publishers
Syntax
The syntax for an event publisher is as follows:
(124) <publishes_dcl> ::= “publishes? <scoped_name> <identifier>
A publisher declaration consists of the following elements:
• the keyword publishes
•a <scoped_name> that denotes a previously-defined event type
•an <identifier> that names the publisher event source in the scope of the component
See the CORBA Components specification, Component Model chapter, “Publisher? section for further details.
3.17.4.2 Emitters
Syntax
The syntax for an emitter declaration is as follows:
(123) <emits_dcl> ::= “emits? <scoped_name> <identifier>
An emitter declaration consists of the following elements:
• the keyword emits
•a <scoped_name> that denotes a previously-defined event type
•an <identifier> that names the event source in the scope of the component.
See the CORBA Components specification, Component Model chapter, “Emitters? section for further details.