Note: we might want to test the limitations of this feature before documenting it, so that we can plan on future non-compatible changes. For instance, what if we want Hibernate Search to add beans to the CDI context in the future? Like being able to do this:
@InjectQueryBuilder<MyEntity> qb;
Wouldn't this fail, because there's a cyclic dependency Hibernate Search => CDI Beans => Hibernate Search?
See HSEARCH-1316: Support @Inject in ClassBridges and FieldBridge instancesClosed
Note: we might want to test the limitations of this feature before documenting it, so that we can plan on future non-compatible changes.
For instance, what if we want Hibernate Search to add beans to the CDI context in the future? Like being able to do this:
@Inject QueryBuilder<MyEntity> qb;
Wouldn't this fail, because there's a cyclic dependency Hibernate Search => CDI Beans => Hibernate Search?