Improved CDI support including support for other types of managed beans

Description

The main thrust of this issue is to generally improve the support for CDI in Hibernate ORM in terms of general refactoring.

But the other design goal is to make it easier to support new kinds of managed beans. Initially this will include AttributeConverters, but I can also see supporting Hibernate event listeners, Hibernate services, etc. Essentially anything we instantiate ourselves should be considered.

In-flight list of Service contracts to consider:

  1. RegionFactory (L2 caching support)

  2. JtaPlatform

  3. TransactionCoordinatorBuilder

  4. Interceptors

75% Done
Loading...

Activity

Show:

Steve Ebersole December 24, 2017 at 9:07 PM

Spring will not be supported out of the box. However, the feature was developed with Spring in mind. has done a "proof of concept" showing that it is indeed possible to plug Spring in as an alternative ManagedBeanFactory - he is the one who opened that Spring Jira. As he mentions in that Jira, its super trivial to plug in a Spring-based impl. In fact there are currently 2 ways this can be done : both via a setting and via a JDK "service" (aka, ServiceLoader). We will certainly help Jurgen/Spring decide a best solution if they are interested in our input.

Andrei Ivanov December 20, 2017 at 10:09 AM

Adriano Machado December 20, 2017 at 2:16 AM

Will Spring be supported for dependency injection? Or I can help, with some guidance, contribute it?

Steve Ebersole November 28, 2017 at 3:34 PM

Re-opened as I am going to look at this for 5.3. JPA 2.2 requires support for {{AttributeConverter}}s as CDI beans.

Out of Date

Details

Assignee

Reporter

Components

Priority

Created November 18, 2016 at 3:44 PM
Updated December 3, 2024 at 9:20 AM
Resolved April 3, 2019 at 3:27 PM