org.hibernate.search.cfg.spi
Class SearchConfigurationBase
java.lang.Object
org.hibernate.search.cfg.spi.SearchConfigurationBase
- All Implemented Interfaces:
- SearchConfiguration
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
isIdProvidedImplicit
public boolean isIdProvidedImplicit()
- Specified by:
isIdProvidedImplicit in interface SearchConfiguration
- Returns:
true if we should treat indexed entities as implicitly annotated
with a ProvidedId, if no other Id is specified.
getIndexManagerFactory
public IndexManagerFactory getIndexManagerFactory()
- Specified by:
getIndexManagerFactory in interface SearchConfiguration
- Returns:
- the component responbile to create IndexManager instances; this might be a custom
component to allow for different default implementations, custom aliases, different
classloaders.
Copyright © 2006-2013 Hibernate. All Rights Reserved.