org.hibernate.search.cfg.spi
Class SearchConfigurationBase
java.lang.Object
org.hibernate.search.cfg.spi.SearchConfigurationBase
- All Implemented Interfaces:
- SearchConfiguration
- Direct Known Subclasses:
- SearchConfigurationFromHibernateCore
public abstract class SearchConfigurationBase
- extends Object
- implements SearchConfiguration
Suggested base class to create custom SearchConfiguration implementations.
We might need to add new methods to the SearchConfiguration
interface,
in that case we can add default implementations here to avoid breaking
integration code.
- Author:
- Sanne Grinovero (C) 2012 Red Hat Inc.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchConfigurationBase
public SearchConfigurationBase()
isTransactionManagerExpected
public boolean isTransactionManagerExpected()
- Safest to default to true.
- Specified by:
isTransactionManagerExpected
in interface SearchConfiguration
- Returns:
- when returning
false
Search will avoid logging such warnings.
isIndexMetadataComplete
public boolean isIndexMetadataComplete()
- Safest to default to false.
- Specified by:
isIndexMetadataComplete
in interface SearchConfiguration
- Returns:
true
if it is safe to assume that the information we have about
index metadata is accurate. This should be set to false for example if the index
could contain Documents related to types not known to this SearchFactory instance.
getInstanceInitializer
public InstanceInitializer getInstanceInitializer()
- Specified by:
getInstanceInitializer
in interface SearchConfiguration
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved