Prevayler is touchy
Comments:

"If you create more than one Prevayler instance using the same PrevaylerSystem it'll be unhappy."

Just wondering what your specific need is for doing this?

Posted by Steve Conover on February 22, 2003 at 11:22 PM CST #

And how would you go about doing it?
I mean if you do
prevayler = new Prevayler(new MySystem(), "dir");
and then
prevayler2 = new Prevayler(prevayler.system(), "dir");
then it is not very likely that
prevayler.system() == prevayler2.system()
because the instance provided in the constructor is only ever used if there is no snapshot to be restored.

If you run into any problems I think you're not going to have any problems reading the source-code to find out what's going on. It's very small and simplistic.

Posted by Jon Tirsen on February 23, 2003 at 04:46 AM CST
Website: http://freeroller.net/page/tirsen #

To answer Steve's question, I don't have a need for it, but the lifecyle of the Prevayler object isn't clear and I think that lead to a misunderstanding on my part.

For Jon: Small and simplistic, yes. Obvious, no. I think I spent more time reading Demo code than Implementation code, I need to rectify that.

Posted by Lance on February 23, 2003 at 09:32 AM CST #

Comments have been disabled.