Quoting Rickard Öberg <[email protected]>:

Hi,

In looking for opportunities to simplify, I am removing ObjectBuilder. It currently has methods for uses() and injectTo(instance). These things can be just as easily performed by the following methods:
newObject(clazz);
newObject(clazz,uses1,uses2,uses3);
injectTo(instance, uses1, uses2, uses3);

The old ObjectBuilderFactory is therefore renamed to ObjectFactory instead, with the above methods.


In some code I am currently using, I am passing ObjectBuilder around into runtime-changeable set of initializer-style objects. Each initializer may potentially invoke the 'uses' method for the given ObjectBuilder. Does this mean I now have to manually instantiate the object using Class.newInstance method, and then pass this newly created object around instead of ObjectBuilder?


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to