cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: WSDL2Java does not generate the setter method of a List of objects
Date Thu, 06 Mar 2008 18:48:13 GMT

This is per JAXB spec.  The JAXB spec specifically says it should be that 
way.

Dan


On Thursday 06 March 2008, Landslide wrote:
> If I have a class of Contact which has an instance variable of
> List<Address> addresses = new ArrayList<Address>();
> on my server side implementation, using the tool of WSDL2Java
> generates the getter method:
>     public List<Address> getAddresses() {
>         if (addresses == null) {
>             addresses = new ArrayList<Address>();
>         }
>         return this.addresses;
>     }
>
> but it does not generate the setter method:
>     public void setAddresses(List<Address> addresses) {
>     	this.addresses = addresses;
>     }
>
> I am using CXF 2.0.4.



-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message