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

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

There is a newer version: 8.0.0.Alpha1
Show 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.mapper.mapping.building.spi.MappingFinalizer;
import org.hibernate.search.engine.mapper.mapping.building.spi.MappingKey;

public interface SearchIntegrationFinalizer {

	/**
	 * Finalize the building of a mapping.
	 * @param mappingKey The mapping key allowing to retrieve the pre-built mapping.
	 * @param finalizer The object responsible for turning a pre-built mapping into a fully-built mapping
	 * (it may hold some additional context).
	 * @param  The type of the partially-built mapping.
	 * @param  The type of the fully-built mapping.
	 * @return The fully-built mapping.
	 */
	 M finalizeMapping(MappingKey mappingKey, MappingFinalizer finalizer);

	/**
	 * Finalize the building of the integration.
	 * @return The fully-built integration.
	 */
	SearchIntegration finalizeIntegration();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy