All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.cfg.spi.SearchConfigurationBase Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.search.cfg.spi;

import org.hibernate.search.spi.DefaultInstanceInitializer;
import org.hibernate.search.spi.InstanceInitializer;

/**
 * Suggested base class to create custom SearchConfiguration implementations.
 * We might need to add new methods to the {@link org.hibernate.search.cfg.spi.SearchConfiguration} interface,
 * in that case we can add default implementations here to avoid breaking
 * integration code.
 *
 * @author Sanne Grinovero  (C) 2012 Red Hat Inc.
 */
public abstract class SearchConfigurationBase implements SearchConfiguration {

	/**
	 * {@inheritDoc}
	 * 

* In most cases it is safest to default to {@code true}. *

*/ @Override public boolean isTransactionManagerExpected() { return true; } /** * {@inheritDoc} *

* In most cases it is safest to default to {@code false}. *

*/ @Override public boolean isIndexMetadataComplete() { return false; } @Override public InstanceInitializer getInstanceInitializer() { return DefaultInstanceInitializer.DEFAULT_INITIALIZER; } @Override public boolean isIdProvidedImplicit() { return false; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy