It's really complex, and I'm sure we can do better:
- Move any mapping configuration out of org.hibernate.search.v6poc.entity.orm.bootstrap.impl.HibernateSearchSessionFactoryObserver#boot to PojoMappingContributor or one of its delegates. The current state is particularly annoying as of HSEARCH-3175 Pull Request Sent since it forces us to use the BeanResolver as a client (to retrieve beans) inside HibernateSearchSessionFactoryObserver#boot, whereas we should use the BeanProvider, but it's too early to access the BeanProvider at this point...
- Avoid types with very close (and thus confusing) names: PojoMapperFactory vs. PojoMappingFactory, PojoMappingContributor vs. MetadataContributor vs. PojoTypeMetadataContributor, ...
- Generally do whatever we can to make things simpler...
|