Hi, guys!
What's the difference between newInstance and prototype methods on
TransientBuilder? I am a bit confused It seems like prototype does
create an instance that I can modify; do I still have to call
newInstance after I initialized all the things that I wanted to
initialize?
Is this the correct way to do it:
TransientBuilder<QrmTableMapping> bldrQTM =
module.transientBuilderFactory().newTransientBuilder(
QrmTableMapping.class );
QrmTableMapping prototype = bldrQTM.prototype();
result.originator().set( entityDescriptor );
....
return bldrQTM.newInstance();
If it is, I gotta say it is confusing. I would think an initializing
callback as a parameter to newInstance() would make things a lot more
clear.
Thanks,
Alex.
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev