Class TypeMetadataContributorProvider<C>

java.lang.Object
org.hibernate.search.engine.mapper.model.spi.TypeMetadataContributorProvider<C>
Type Parameters:
C - The Java type of type metadata contributors.

public final class TypeMetadataContributorProvider<C> extends Object
A provider of type metadata contributors, taking into account explicit contributions, implicit discovery and inheritance.
  • Method Details

    • builder

      public static <C> TypeMetadataContributorProvider.Builder<C> builder()
    • get

      public Set<C> get(MappableTypeModel typeModel)
      Parameters:
      typeModel - The model of a type to retrieve contributors for, including supertype contributors.
      Returns:
      A set of metadata contributors
    • getIgnoringInheritance

      public Set<C> getIgnoringInheritance(MappableTypeModel typeModel)
      Parameters:
      typeModel - The model of a type to retrieve contributors for, excluding supertype contributors.
      Returns:
      A set of metadata contributors
    • typesContributedTo

      public Set<? extends MappableTypeModel> typesContributedTo()
      Returns:
      A set containing all the types that were contributed to so far.