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

org.hibernate.search.engine.metadata.impl.MetadataProvider Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * 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.metadata.impl;

import org.hibernate.search.indexes.spi.IndexManagerType;
import org.hibernate.search.spi.IndexedTypeIdentifier;

/**
 * @author Hardy Ferentschik
 */
public interface MetadataProvider {

	/**
	 * Returns the Search related metadata for the specified type.
	 *
	 * @param type The type of interest.
	 * @param indexManagerType the {@code IndexManagerType} type managing this entity type
	 *
	 * @return the {@code TypeMetadata} for the specified type
	 */
	TypeMetadata getTypeMetadataFor(IndexedTypeIdentifier type, IndexManagerType indexManagerType);

	/**
	 * Returns the {@code ContainedIn} related metadata for the specified type.
	 *
	 * 

The metadata for {@code ContainedIn} are not comprehensive: they do not * contain the information about the FieldBridges, the analyzers or the NullMarkerCodecs. *

We can't build these information because classes only marked with * {@code ContainedIn} are not tied to an {@code IndexManager}. *

It's of no use for {@code ContainedIn} resolution anyway. * * @param type The type of interest. * * @return the {@code ContainedInTypeMetadata} for the specified type */ TypeMetadata getTypeMetadataForContainedIn(IndexedTypeIdentifier type); boolean containsSearchMetadata(IndexedTypeIdentifier type); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy