org.hibernate.search.cfg.spi
Class SearchConfigurationBase

java.lang.Object
  extended by 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.

Constructor Summary
SearchConfigurationBase()
           
 
Method Summary
 InstanceInitializer getInstanceInitializer()
           
 boolean isIndexMetadataComplete()
          Safest to default to false.
 boolean isTransactionManagerExpected()
          Safest to default to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.search.cfg.spi.SearchConfiguration
getClassMapping, getClassMappings, getProgrammaticMapping, getProperties, getProperty, getProvidedServices, getReflectionManager
 

Constructor Detail

SearchConfigurationBase

public SearchConfigurationBase()
Method Detail

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