• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Factory Patterns  RSS feed

Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, friends
I have a problem:
I create a remote version using callbacks and RMI.
For local mode I implemented the factory patterns using a common interface
(with extends both interface Local and Remote ).
My problem is in method like getServer (return IRemoteSErver remote interface in remote mode) and getClient (return RemoteClient with method for call back in remote mode) used for calling remote methods and callbacks
In local mode, both need to return something like "this.
I tried to overload and casting without success
Please need help
Thanks in advance
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!