Auto-discovery of Hibernate extension points in OSGi
Description
Look into auto-discovery of Hibernate extension points in Bundles: Services, Integrators, Types, UserTypes, etc. This presents numerous complications, so we're looking for help with use cases.
One specific question involves the Services. Should these be treated just like any other class in the Bundle? Or, should we also create an OSGi ServiceListener and have users register Services with the container?
In order for envers (and possibly others) to provide Types, I cherry-picked https://hibernate.atlassian.net/browse/HHH-7998#icft=HHH-7998 into 4.2 and master. For simplicity, I kept TypeContributor in its .metamodel package. It's wired into Configuration and Ejb3Configuration.
Look into auto-discovery of Hibernate extension points in Bundles: Services, Integrators, Types, UserTypes, etc. This presents numerous complications, so we're looking for help with use cases.
One specific question involves the Services. Should these be treated just like any other class in the Bundle? Or, should we also create an OSGi ServiceListener and have users register Services with the container?