users@jaxb.java.net

Difference between object factory and default constructor

From: Tim Davidson <tim.davidson_at_greenhatconsulting.com>
Date: Fri, 13 Jun 2003 11:26:30 +0100

Hi

 Whats the difference between using
        ObjectFactory objFactory = new ObjectFactory();
        MyObject myObj = objFactory.createMyObject();
and
        MyObject myObj = new MyObjectImpl();
? I cant find any documentation which says why to use the objectFactory?
We are using both methods and they both appear to work fine.

thanks.