
CollectionActor |
org.nddp.CollectionActor |
Base class for actors that process collections. The class simplifies the
writing of such actors by providing the following services:
<ul>
<li>Provides a fire method that calls a handler method for each data token
received.
<li>Provides implementations of the non-data handler methods that call
corresponding handlers when a new start of a new collection arrives, when
the end of a collection arrives, when a metadata token arrives, etc.
<li>Creates collection managers for each incoming collection and passes
references to the collection event handlers.
<li>Allows subclasses to specify whether to process and whether to forward
on the collections that are received by the actor. The subclass is not
informed of arriving tokens and subcollections part of a collection that
the subclass has chosen not to process.
<li>Provides a parameter for specifying types of collections and data that
should be processed. All other collections and data are passed through
transparently.
</ul>
Author(s): Timothy M. McPhillips
Version: