On 2010-10-04 14.07, Niclas Hedhman wrote:
Also, I am right now looking at

EntityStore.visitEntityStates( EntityStateVisitor<ThrowableType>
visitor, ModuleSPI module )
         throws ThrowableType;

and in the implementation JSONMapEntityStoreMixin, a DefaultESUOW is
created, meaning the Usecase would be needed.

Options;
1. Provide a Usecase which doesn't cache.
2. Grab the Usecase from UnitOfWork via
ModuleInstance.unitOfWorkFactory().currentUnitOfWork().
3. Add a Usecase argument.

Not sure what is most suitable...

I would prefer 1. I can't think of any good reason to cache while traversing the entitystore.

/Rickard

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

Reply via email to