> ValueBuilder<SomeValue>  builder = valueBuilderFactory.newValueBuilder(
> SomeValue.class );
> SomeValue prototype = builder.prototype();
> prototype.xyzzyList().get().add("blah");
> // Property pointing to another value
> SomeValue instance = builder.newInstance();
>
> assertThat("List has value blah", instance.xyzzyList().get().get( 0 ),

What about multiple prototype() calls on the same builder?
Are they returning the same prototype object ?
Or creating new ones which can modify the builder state? And then last comes 
last served?
What after builder.instance() ? Is the prototype still valid (should it be?) 
and can be used
to create slightly different instances?

Is / should there be a reset / cancel operation on the builder to reset values?
This takes us a bit to STM (Software transactional memory) ??

Michael

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

Reply via email to