• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Problem in Factory Patterns

 
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
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic