Hi there, JAXB supports the ability to define a factory method or object factory for instantiating an object during unmarshalling using @XmlType (factoryClass=MyFactory.class...). This allows a class to have a private constructor, and control class construction solely through the factory.
But when I define a class with this factory method and a private no-arg constructor, CXF does not generate the WSDL schema for this class. I've done some tests on JAXB - JAXB can marshal and unmarshall objects of this type fine. Is there a way I can tell CXF to use the object factory instead of trying to invoke the no-arg constructor? Also, is there a way AegisDataBinding can serialize of private members? I don't want to make my fields public (or implement encapsulation-breaking getters and setters) for the sole sake of XML serialization. -- View this message in context: http://www.nabble.com/Using-JAXB-Object-Factory-tp22863523p22863523.html Sent from the cxf-user mailing list archive at Nabble.com.
