[hibernate-dev] JPA callback listeners and CDI
Steve Ebersole
steve at hibernate.org
Sat Aug 18 13:30:08 EDT 2012
Recently I just finished up adding JPA 2.1 support for CDI injection of
callback listeners. Couple of things about this:
1) Took this opportunity to refactor and clean up a lot of this code.
On benefit of this was I added a feature now where after transaction
hooks are not added as part of ActionQueue processing unless registered
listeners say it is needed for that particular entity type! This is
something users have been asking for for quite some time. So thats a
good win. This is both for Envers and HEM.
2) The way this is currently implemented, using JPA now has a dependency
on the CDI API being available on the classpath. We need to decide if
that is unreasonable. The other option is to handle it like we do for
BeanValidation and use messy reflection to isolate the dependency.
--
steve at hibernate.org
http://hibernate.org
More information about the hibernate-dev
mailing list