2.3 The Reactor Singleton Object

Within any application there will only be a single reactor component. This is implemented as the ReactorCore singleton, which provides static accessor methods for obtaining a handle on its various interfaces. The accessor methods of interest are shown in Listing 2.3. All access to the reactor itself should be via these two interfaces - the Reactor interface providing the user API and the ReactorControl interface providing control over the reactor lifecycle.


\begin{listing}
% latex2html id marker 378\begin{verbatim}package com.zynapt...
...
...
}\end{verbatim}
\caption{Reactor Interface Accessor Methods}
\end{listing}