• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Factory Patterns

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
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!