[hibernate-dev] JPA callback listeners and CDI

Emmanuel Bernard emmanuel at hibernate.org
Thu Aug 23 11:11:22 EDT 2012

On 20 août 2012, at 11:41, Hardy Ferentschik wrote:

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

I would also mimic what we did for the integration with Bean Validation.

More information about the hibernate-dev mailing list