Previous Table of Contents Next


3.17.4 Event Sources—publishers and emitters


   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:

   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:

   See the CORBA Components specification, Component Model chapter, “Emitters? section for further details.