Niclas Hedhman a écrit :
> I must have missed that completely before.
>
> Sure, I have no direct objections.
>
> Why is it Functions?
Can't recall. It is Functions on the ValueBuilderFactory interface so I
built it with Functions for Entities too. For the sake of consistency.
In fact, the newValueBuilderWithState(..) implementation internally use
an interface defined in runtime to wrap the Functions:
ValueStateModel.StateResolver. My implementation for Entities reuse this
inner interface so it should be moved out of ValueStateModel (in
org.qi4j.runtime.composite?).
I propose to start with minimum API changes, that is only add the new
method in UnitOfWork, so I can push it to the develop branch for
inclusion in 2.1.
For 3.0 I plan to propose some refactoring around State that would get
us uniform State handling accross Composites and easier/simpler
(de)serialization.
WDYT?
/Paul