public class DefaultMassIndexerFactory extends Object implements MassIndexerFactory
MassIndexer
implementation used when none is specified in the configuration.Constructor and Description |
---|
DefaultMassIndexerFactory() |
Modifier and Type | Method and Description |
---|---|
MassIndexer |
createMassIndexer(SearchFactoryImplementor searchFactory,
org.hibernate.engine.spi.SessionFactoryImplementor 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.
|
public void initialize(Properties properties)
MassIndexerFactory
initialize
in interface MassIndexerFactory
properties
- configuration propertiespublic MassIndexer createMassIndexer(SearchFactoryImplementor searchFactory, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, Class<?>... entities)
MassIndexerFactory
MassIndexer
.createMassIndexer
in interface MassIndexerFactory
searchFactory
- the Hibernate Search factorysessionFactory
- the Session
factoryentities
- the classes of the entities that are going to be indexedCopyright © 2006–2016 Hibernate. All rights reserved.