Global Positioning System Reference
In-Depth Information
Figure10.1.
The basic components of every
RealObject
client in the ROAF.
Is this implementation fit for any physical object and to transmit any
information? The answer can be found in object-oriented software con-
structs. By inheriting the
RealObject
and the
RemoteObject
, anything can
be implemented on the client and server side. So much for now: inheritance
will play a decisive role in defining the client-server architecture in the next
chapter.
10.4
The
roaf.util.RMI
Class
The
roaf.book.rmi
package does not make use of the full extent of RMI
applications. Therefore, the
roaf.util.RMI
class is created as a common
basis for all ROAF developers to avoid redundant code and to be able
to improve the RMI coding in one place. The class is designed to be
final and unextendable and to provide the basic methods needed for a
distributed RMI application. The static methods are designed to catch all
(cascaded) exceptions, provide hints, and return
true
on success and
false
on failure. Thus, the programmer only needs to import
java.rmi.Remote
Search WWH ::
Custom Search