[hibernate-dev] JPA callback listeners and CDI

Hardy Ferentschik hardy at hibernate.org
Mon Aug 20 05:41:09 EDT 2012


On 18 Jan 2012, at 7:30 PM, Steve Ebersole wrote:

> 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.

I am not a big fan of the hard dependency to CDI. If there is no other option I think we should 
go for the reflection approach. I don't think it is too messy. Pretty straight forward imo.

--Hardy


More information about the hibernate-dev mailing list