You might be able to use your own Guice-aware interpolator. I haven't tried to code this, so I may be totally wrong, but as you don't control object instantiation, you might need to make the Provider an ugly static field somewhere.
Alternatively, you could configure the Validator and (perhaps) EntityManagerFactory programmatically.
The last thing I can think of is that the JPA 2 spec provides a mechanism for this. Any injection it uses would probably be based on CDI, though.
Also, Guice-Persist is long-unmaintained and riddled with bugs, I wouldn't recommend using it.
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice...@googlegroups.com.
To post to this group, send email to google...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/d/optout.
Yes, thats's programmatic configuration. Does it integrate with JPA2 event listeners?
You might be able to use your own Guice-aware interpolator. I haven't tried to code this, so I may be totally wrong, but as you don't control object instantiation, you might need to make the Provider an ugly static field somewhere.
Alternatively, you could configure the Validator and (perhaps) EntityManagerFactory programmatically.
The last thing I can think of is that the JPA 2 spec provides a mechanism for this. Any injection it uses would probably be based on CDI, though.