org.hibernate.search.spi
Interface MassIndexerFactory

All Known Implementing Classes:
DefaultMassIndexerFactory

public interface MassIndexerFactory

Contains methods that can be used to create a MassIndexer.

Author:
Davide D'Alto

Method Summary
 MassIndexer createMassIndexer(SearchFactoryImplementor searchFactory, org.hibernate.SessionFactory sessionFactory, Class<?>... entities)
          Create an instance of a MassIndexer.
 void initialize(Properties properties)
          Called after the creation of the factory, can be used to read configuration parameters.
 

Method Detail

initialize

void initialize(Properties properties)
Called after the creation of the factory, can be used to read configuration parameters.

Parameters:
properties - configuration properties

createMassIndexer

MassIndexer createMassIndexer(SearchFactoryImplementor searchFactory,
                              org.hibernate.SessionFactory sessionFactory,
                              Class<?>... entities)
Create an instance of a MassIndexer.

Parameters:
searchFactory - the Hibernate Search factory
sessionFactory - the Session factory
entities - the classes of the entities that are going to be indexed
Returns:
a new MassIndexer


Copyright © 2006–2013 Hibernate. All rights reserved.