Re: Custom ClassLoader

"Justin T. Sampson" <[email protected]> Wed, 16 Oct 2013 23:19:59 -0700
Newsgroups gmane.comp.java.prevayler
Message-ID <CAAshuuGHOogK7wX0aTrJhNG48Vf6_55XGmnei=jXV0vMGYhP-Q@mail.gmail.com>
Ah, I wondered if the deep copying was the issue. So, yeah, you can turn
off the deep copying, as you've done there.

On the other hand, it might be nice to keep it turned on for your tests, to
catch serialization problems, references to domain objects in transactions,
etc. In that case you just configure a journal serializer with your desired
class loader. Up to you.

I don't think any of us are terribly happy with the PrevaylerFactory
design. You may have noticed it's sitting all alone in a separate Maven
module. :) You can always just go straight to the PrevaylerImpl constructor
and bypass PrevaylerFactory altogether, if the reflective access to
PrevaylerFactory's private methods is what's bothering you about your test3
solution...

Cheers,
Justin





On Wed, Oct 16, 2013 at 3:53 PM, Christian Stein <[email protected]> wrote:

> Here you go:
> https://github.com/sormuras/compayler/blob/master/src/test/org/prevayler/contrib/compayler/CustomClassLoaderTest.java
>
> test0 and test1 are just proof-of-concepts
> test2 fails (TransactionDeepCopy default is true)
> test3 is what I want - in less hacky style
>
> Good night!
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> To unsubscribe go to the end of this page:
> http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
> _______________________________________________
> "Databases in Memoriam" -- http://www.prevayler.org
>
>

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk

_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org