org.hibernate.search.spi
Interface MassIndexerFactory

All Superinterfaces:
Serializable, Service
All Known Implementing Classes:
DefaultMassIndexerFactory

public interface MassIndexerFactory
extends Service

Contains methods that can be used to create a MassIndexer.

Author:
Davide D'Alto
See Also:
Service

Method Summary
 MassIndexer createMassIndexer(SearchFactoryImplementor searchFactory, 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,
                              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 Red Hat Middleware, LLC. All Rights Reserved