"JAXB generates interfaces representing the content (domain) objects. This means when it is time to create the object tree, you can't just instantiate these objects. You have to use the ObjectFactory created by JAXB to create each new object. This can be a bit tedious compared to creating other objects with a typical new. "
Recently Icame across an article on JAXB. The author makes the above observation. I do not understand why it is tedious to use a factory than a new.
For me both ways it is one single statement by itself.
Please shed me some light on the above.
PS:The article is available here.
http://www.onjava.com/pub/a/onjava/2004/05/05/jaxb.html?page=4