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

org.hibernate.search.engine.common.spi.SearchIntegrationPartialBuildState Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Red Hat Inc. and Hibernate Authors
 */
package org.hibernate.search.engine.common.spi;

import org.hibernate.search.engine.cfg.ConfigurationPropertySource;
import org.hibernate.search.engine.cfg.spi.ConfigurationPropertyChecker;
import org.hibernate.search.engine.environment.bean.BeanResolver;

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(); /** * @return The bean resolver used in the first phase of the integration. */ BeanResolver beanResolver(); /** * @param propertySource The configuration property source, * which may hold additional configuration compared to the environment passed to * {@link SearchIntegration#builder(SearchIntegrationEnvironment)}. * @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 - 2024 Weber Informatics LLC | Privacy Policy