Another "public methods" consern

Misha Milshtein

Greenhorn

Posts: 8

posted 15 years ago

"Client implementaton should include a class that implements the same public methods ad suncertify.db.data class...." My question is: must the methods of the client class have the same exact signatures ad the Data methods, or it is enough for them to have the same functionality?

Rick Fortier

Ranch Hand

Posts: 147

posted 15 years ago

It actually says that they should use the same class, Data. The Data class knows how to read and write to the file. So whether the server is acting as a proxy to Data, or the client directly makes calls to Data, they both eventually get funneled through the Data class. There is no reason to duplicate the same functionality when that code has already been written. You need to provide an interface that will call the same Data methods, whether it is remotely or local.

Paul Anilprem

Enthuware Software Support
Ranch Hand

Posts: 3819

10

posted 15 years ago

Yes, they must have the same signature. Of course, the client side methods will only delegate the call to the actual Data class either directly or through some remoting mechanism. HTH, Paul. ------------------ Get Certified, Guaranteed! www.enthuware.com/jqplus