org.hibernate.search.impl
Class DefaultMassIndexerFactory
java.lang.Object
org.hibernate.search.impl.DefaultMassIndexerFactory
- All Implemented Interfaces:
- Serializable, MassIndexerFactory, Service
public class DefaultMassIndexerFactory
- extends Object
- implements MassIndexerFactory
The MassIndexer
implementation used when none is specified in the configuration.
- Author:
- Davide D'Alto
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMassIndexerFactory
public DefaultMassIndexerFactory()
initialize
public void initialize(Properties properties)
- Description copied from interface:
MassIndexerFactory
- Called after the creation of the factory, can be used to read configuration parameters.
- Specified by:
initialize
in interface MassIndexerFactory
- Parameters:
properties
- configuration properties
createMassIndexer
public MassIndexer createMassIndexer(SearchFactoryImplementor searchFactory,
SessionFactory sessionFactory,
Class<?>... entities)
- Description copied from interface:
MassIndexerFactory
- Create an instance of a
MassIndexer
.
- Specified by:
createMassIndexer
in interface MassIndexerFactory
- Parameters:
searchFactory
- the Hibernate Search factorysessionFactory
- the Session
factoryentities
- 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