Hi,
I was wondering if it's possible to create an object which has constructor with 
parameters? For example:

package example1;

public class Person {
    public int customerNumber;
    public String firstName;
    public String lastName;
    
    public Person(int customerNumber) {
        this.customerNumber = customerNumber;
    }
}

If it's possible (using Factory?) then what will the binding (.xml) look like?

All the examples create bean-type classes - which have only the default no-argument 
constructors.

Seems like Castor and JAXB also require a no-argument default constructor for 
unmarshalling the xml to Java objects...

Thanks in advance!

Arunj



____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to