|
Steve Ebersole gave all the needed information to have Hibernate Search support the Configuration-less ORM.
Most of the work has to be done in HibernateSearchIntegrator
Settings/configuration values are now available via either the SessionFactory or the ConfigurationService (which just holds the settings and exposes them in various type-safe ways).
"Mapping information" is MetadataImplementor. Though tbh it sounds like you really just want/need Jandex. More precisely, something like metadata.getEntityBindings().foreach() { entityBinding.getEntity().getClassReference() }
Make the SFObserver accept the serviceRegistry for the configuration service.
Make SearchConfigurationFromHibernateCore read the needed data from the serviceRegistry (for ConfigurationService) and Metadata for the list of mapped entities (see above).
SearchConfigurationFromHibernateCore.getReflectionManager no longer need to look in ORM as ORM no longer needs it.
|