public interface SearchFactoryIntegrator extends SearchFactory
SearchFactory
contract to
its clients.
It also allows modification of some of the search factory internals:
- today allow addition of new indexed classes.Modifier and Type | Method and Description |
---|---|
void |
addClasses(Class<?>... classes)
Add the following classes to the SearchFactory.
|
void |
close() |
HSQuery |
createHSQuery()
Return an Hibernate Search query object.
|
TimeoutExceptionFactory |
getDefaultTimeoutExceptionFactory() |
ErrorHandler |
getErrorHandler()
Used to catch exceptions in all synchronous operations; but default they are logged, the user
can configure alternative error management means.
|
EntityIndexBinding |
getIndexBinding(Class<?> entityType)
Returns the entity to index binding for the given type.
|
EntityIndexBinder |
getIndexBindingForEntity(Class<?> entityType)
Deprecated.
since 4.4. Use
getIndexBinding(Class) |
Worker |
getWorker() |
boolean |
isStopped() |
buildQueryBuilder, getAnalyzer, getAnalyzer, getIndexedTypeDescriptor, getIndexedTypes, getIndexReaderAccessor, getStatistics, optimize, optimize
@Deprecated EntityIndexBinder getIndexBindingForEntity(Class<?> entityType)
getIndexBinding(Class)
EntityIndexBinding getIndexBinding(Class<?> entityType)
entityType
- the type for which to retrieve the bindingnull
is returned for types which are unindexed or
unknown.void addClasses(Class<?>... classes)
Worker getWorker()
void close()
HSQuery createHSQuery()
boolean isStopped()
ErrorHandler getErrorHandler()
TimeoutExceptionFactory getDefaultTimeoutExceptionFactory()
Copyright © 2006–2015 Hibernate. All rights reserved.