
org.hibernate.search.engine.metadata.impl.MetadataProvider 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
Core of the Object/Lucene mapper, query engine and index management
/*
* 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;
/**
* @author Hardy Ferentschik
*/
public interface MetadataProvider {
/**
* Returns the Search related metadata for the specified type.
*
* @param clazz The type of interest.
* @param indexManagerType the {@code IndexManagerType} type managing this entity type
*
* @return the {@code TypeMetadata} for the specified type
*/
TypeMetadata getTypeMetadataFor(Class> clazz, 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 and the analyzers.
* 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 clazz The type of interest.
*
* @return the {@code ContainedInTypeMetadata} for the specified type
*/
TypeMetadata getTypeMetadataForContainedIn(Class> clazz);
boolean containsSearchMetadata(Class> clazz);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy