org.hibernate.search.engine.backend.spi.BackendStartContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Hibernate Search engine, always required
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.backend.spi;
import org.hibernate.search.engine.cfg.ConfigurationPropertySource;
import org.hibernate.search.engine.environment.bean.BeanResolver;
import org.hibernate.search.engine.environment.thread.spi.ThreadPoolProvider;
import org.hibernate.search.engine.reporting.spi.ContextualFailureCollector;
/**
* A start context for backends.
*/
public interface BackendStartContext {
/**
* A collector of (non-fatal) failures, allowing to notify Hibernate Search
* that something went wrong and bootstrap should be aborted at some point,
* while still continuing the bootstrap process for some time to collect other errors
* that could be relevant to users.
*
* @return A failure collector.
*/
ContextualFailureCollector failureCollector();
/**
* @return A {@link BeanResolver}.
*/
BeanResolver beanResolver();
ConfigurationPropertySource configurationPropertySource();
ThreadPoolProvider threadPoolProvider();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy