• Post Reply Bookmark Topic Watch Topic
  • New Topic

web service class constructors

 
David Brossard
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I develop a web service e.g. Service.java, I usually go about creating an interface (Service.java) and one implementation ServiceImpl.java.

This has been working fine for a while until for some reason I decided I wanted 2 constructors one with a parameter e.g. ServiceImpl(String s) and one w/out.

Since I make a call to that constructor in my ServiceSoapBindingImpl, I'm making a choice between which constructor to use. But I would like that to be an end-user choice. Has anyone any idea how to go about this? Or should it be something to avoid altogether?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!