1

I have a wsdl and I am generating the associated Java classes using wsimport (from the jdk).

The generated Java classes have their fields visibility set to protected.

How do you generate those Java classes with a visibility of private ?

I have seen this post but the solution is to write a plugin. Since I am also using an jaxb binding file to correct some few other things ,I m looking for a declarative way to switch from protected to private.

Thank you

Community
  • 1
  • 1
ccheneson
  • 49,072
  • 8
  • 63
  • 68
  • 1
    To the best of my knowledge, there is no such built-in way at the moment. What is the problem with the plugin and the bindings file? – lexicore Jan 29 '15 at 11:44
  • It's just that I wanted more like a declarative way but if there is no such built in way, I will try using the plugin's example. Thanks. – ccheneson Jan 29 '15 at 12:51

0 Answers0