
org.hibernate.search.engine.common.spi.SearchIntegrationPartialBuildState Maven / Gradle / Ivy
/*
* 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.engine.common.spi;
import org.hibernate.search.engine.cfg.spi.ConfigurationPropertyChecker;
import org.hibernate.search.engine.cfg.spi.ConfigurationPropertySource;
public interface SearchIntegrationPartialBuildState {
/**
* Close the resources held by this object (backends, index managers, ...).
*
* To be called in the event of a failure that will prevent the integration from being finalized.
*/
void closeOnFailure();
/**
* @param propertySource The configuration property source,
* which may hold additional configuration compared to the one passed to
* {@link SearchIntegration#builder(ConfigurationPropertySource, ConfigurationPropertyChecker)}.
* @param propertyChecker The configuration property checker
* tracking the given {@code configurationPropertySource}.
* @return An object allowing the finalization of the search integration.
*/
SearchIntegrationFinalizer finalizer(ConfigurationPropertySource propertySource,
ConfigurationPropertyChecker propertyChecker);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy