[hibernate-dev] [Search] OSGi split packages
Emmanuel Bernard
emmanuel at hibernate.org
Thu Mar 27 06:21:39 EDT 2014
On 27 Mar 2014, at 11:18, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
>
>>
>>> org.hibernate.search.SearchFactory -> org.hibernate.search.spi.SearchFactory
>>
>> as Emmanuel said, that's an API currently. I'm inclined to think we
>> should convert it to an SPI, and provide a richer more ORM specific
>> version in the ORM module?
>> That way, we could keep the package name. It would break things for
>> Infinispan Query API but it seems that would happen anyway.
>
> And each event source would need a SearchFactory subinterface + some delegator implementation? Is that your idea?
> Because SearchFactory contains very useful cross event source methods like retrieving an analyzer, accessing Lucene directly and providing access to the query DSL.
>
> That could work.
BTW SearchFactory would still remain an API by that factor.
- o.h.s.boostrap.SearchFactory
- o.h.s.boostrap.CommonSearchFactory
More information about the hibernate-dev
mailing list