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

org.hibernate.search.engine.backend.scope.IndexScopeExtension 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.backend.scope;

import org.hibernate.search.engine.backend.scope.spi.IndexScope;

/**
 * An extension to the index scope, providing an extended index scope offering backend-specific utilities.
 * 

* WARNING: while this type is API, because instances should be manipulated by users, * all of its methods are considered SPIs and therefore should never be called or implemented directly by users. * In short, users are only expected to get instances of this type from an API ({@code SomeExtension.get()}) * and pass it to another API. * * @param The type of extended index scope. * Should generally extend {@link IndexScope}. * * @see IndexScope#extension(IndexScopeExtension) */ public interface IndexScopeExtension { /** * Attempt to extend an index scope, throwing an exception in case of failure. *

* WARNING: this method is not API, see comments at the type level. * * @param original The original, non-extended {@link IndexScope}. * @return An extended index scope ({@link T}) */ T extendOrFail(IndexScope original); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy