users@jaxb.java.net

Question about ObjectFactory

From: yankings <yankings_at_hotmail.com>
Date: Tue, 9 Dec 2008 20:08:10 -0800 (PST)

Hi,

I would like to know what is the different between the following two
declaration:

1 Create element class through Object Factory:
ObjectFactory of = new ObjectFactory();
CatalogType catalog=factory.createCatalogType();

&
2 Create element class through new object:
CatalogType catalog= new CatalogType();

??As i try to create all element class through 2 and then call the mashaller
to generate the xml file, it works fine. What is the reason to use
ObjectFactory to get new element class?

Thanks a lot!!
-- 
View this message in context: http://www.nabble.com/Question-about-ObjectFactory-tp20928806p20928806.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.