Cliser: The Java CommunicatorUser Hierarchy |
Since the Cliser Client, Server, and ServiceThread classes all use a Communicator to communicate, the CommunicatorUser class provides a convenient superclass from which these classes can be subclassed:
For convenience, class CommunicatorUser declares an abstract getCommunicator() method, which it then uses to build its own "wrappers" for the Communicator communication primitives send() and receive(), so that they can be used without referring to the underlying Communicator. The Client, Server, and ServiceThread subclasses then inherit these primitives, but must supply a definition for getCommunicator().
Up to the Cliser class libraries | Down to the Client class hierarchy | Down to the Server class hierarchy | Down to the ServiceThread class | Up to the C++ class library |